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:
Christian Kandeler
2013-10-17 17:46:25 +02:00
parent b2f27649a2
commit c4c9b90b7f

View File

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