forked from qt-creator/qt-creator
QbsProjectManager: Do not create a build graph when resolving a project.
People do not expect directories to be created as a side effect of opening a project. Task-number: QBS-304 Change-Id: I820a1311d534a4a76a4660588c4e9d71cc03f153 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -430,6 +430,10 @@ void QbsProject::parse(const QVariantMap &config, const Environment &env, const
|
||||
return;
|
||||
}
|
||||
|
||||
// Some people don't like it when files are created as a side effect of opening a project,
|
||||
// so do not store the build graph if the build directory does not exist yet.
|
||||
params.setDryRun(!QFileInfo(dir).exists());
|
||||
|
||||
params.setBuildRoot(dir);
|
||||
params.setProjectFilePath(m_fileName);
|
||||
params.setIgnoreDifferentProjectFilePath(false);
|
||||
|
||||
Reference in New Issue
Block a user