forked from qt-creator/qt-creator
Utils/ProjectExplorer: Use FilePath for Runnable::workingDirectory
... and in some using code. Change-Id: I231ea56628908f7d305d13f07eabe8803fe8a791 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user