aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp
diff options
context:
space:
mode:
authorDaniel Teske <daniel.teske@digia.com>2013-06-18 17:54:11 +0200
committerDaniel Teske <daniel.teske@digia.com>2013-06-19 12:31:09 +0200
commitaf254e47aaad517e7800a4d7b9aea949c7c4f64c (patch)
treea903f84b19682cd774836ec9a30cb6fbb54766d3 /src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp
parentf7349e49dff5907f7fe8a7373e6293e8e3e3dbb6 (diff)
CMake: Save all files before running cmake wizard
Task-number: QTCREATORBUG-9537 Change-Id: Ie5e4ffd33a9a9108c2e12bf8e71d932f6586053c Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp b/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp
index 63f13f62f92..910d027ab8f 100644
--- a/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp
@@ -115,6 +115,9 @@ void CMakeManager::runCMake(ProjectExplorer::Project *project)
if (!cmakeProject || !cmakeProject->activeTarget() || !cmakeProject->activeTarget()->activeBuildConfiguration())
return;
+ if (!ProjectExplorer::ProjectExplorerPlugin::instance()->saveModifiedFiles())
+ return;
+
CMakeBuildConfiguration *bc
= static_cast<CMakeBuildConfiguration *>(cmakeProject->activeTarget()->activeBuildConfiguration());