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:
hjk
2023-06-29 17:21:18 +02:00
parent 2cc4967451
commit d0d1e1af1f
4 changed files with 7 additions and 7 deletions

View File

@@ -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()