diff options
author | hjk <hjk@qt.io> | 2021-08-02 18:02:10 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2021-08-06 12:51:24 +0000 |
commit | 4a42bcd4e8d2c73be426775597e8a58f5df6a3a8 (patch) | |
tree | 9def81512c2a914cdec059587dca6135c38e0e15 /src/plugins/python/pythonutils.cpp | |
parent | b8f369c436cddd0323ea752a6c1b623431cb5096 (diff) | |
download | qt-creator-4a42bcd4e8d2c73be426775597e8a58f5df6a3a8.tar.gz |
Utils/ProjectExplorer: Use FilePath for Runnable::workingDirectory
... and in some using code.
Change-Id: I231ea56628908f7d305d13f07eabe8803fe8a791
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/python/pythonutils.cpp')
-rw-r--r-- | src/plugins/python/pythonutils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/python/pythonutils.cpp b/src/plugins/python/pythonutils.cpp index d476bbf5bf..043802e336 100644 --- a/src/plugins/python/pythonutils.cpp +++ b/src/plugins/python/pythonutils.cpp @@ -517,10 +517,10 @@ void openPythonRepl(const FilePath &file, ReplType type) static const auto workingDir = [](const FilePath &file) { if (file.isEmpty()) { if (ProjectExplorer::Project *project = ProjectExplorer::SessionManager::startupProject()) - return project->projectDirectory().toFileInfo().filePath(); - return QDir::currentPath(); + return project->projectDirectory(); + return FilePath::fromString(QDir::currentPath()); } - return file.toFileInfo().path(); + return file; }; const auto args = QStringList{"-i"} + replImportArgs(file, type); |