forked from qt-creator/qt-creator
A few more direct FilePathAspect value accesses
Task-number: QTCREATORBUG-29167 Change-Id: I8eba582303c16dddbdb5cea5bce43f048bac06b7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -132,7 +132,7 @@ void PythonWizardPage::initializePage()
|
||||
|
||||
const FilePath projectDir = FilePath::fromString(wiz->property("ProjectDirectory").toString());
|
||||
m_createVenv.setValue(!projectDir.isEmpty());
|
||||
if (m_venvPath.filePath().isEmpty())
|
||||
if (m_venvPath().isEmpty())
|
||||
m_venvPath.setValue(projectDir.isEmpty() ? FilePath{} : projectDir / "venv");
|
||||
|
||||
updateInterpreters();
|
||||
@@ -171,7 +171,7 @@ void PythonWizardPage::setupProject(const JsonWizard::GeneratorFiles &files)
|
||||
}
|
||||
}
|
||||
};
|
||||
PythonSettings::createVirtualEnvironment(m_venvPath.filePath(),
|
||||
PythonSettings::createVirtualEnvironment(m_venvPath(),
|
||||
interpreter,
|
||||
openProjectWithInterpreter,
|
||||
project ? project->displayName()
|
||||
|
||||
Reference in New Issue
Block a user