aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2017-11-14 12:36:13 +0100
committerTobias Hunger <tobias.hunger@qt.io>2017-11-14 14:19:27 +0000
commitda18c76b96963f5cadb7103bf6da6409b3ade070 (patch)
tree1ca7e645b194a40b3a05a9d43578f802c115e974 /src
parent71933a4df86446803a4ace5509f6879f507bb81a (diff)
CMake: Block project configuration widget while project is parsing
This prevents the user from changing settings while the project is parsing. Those changes would get lost. Task-number: QTCREATORBUG-18988 Change-Id: Ie04c6750c8aea3fe5543168ae4838f42fe488ca2 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakebuildsettingswidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakebuildsettingswidget.cpp b/src/plugins/cmakeprojectmanager/cmakebuildsettingswidget.cpp
index 8f93c26e66..a9eaca1ce0 100644
--- a/src/plugins/cmakeprojectmanager/cmakebuildsettingswidget.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakebuildsettingswidget.cpp
@@ -243,6 +243,7 @@ CMakeBuildSettingsWidget::CMakeBuildSettingsWidget(CMakeBuildConfiguration *bc)
connect(project, &ProjectExplorer::Project::parsingStarted, this, [this]() {
updateButtonState();
+ m_configView->setEnabled(false);
m_showProgressTimer.start();
});
@@ -257,6 +258,7 @@ CMakeBuildSettingsWidget::CMakeBuildSettingsWidget(CMakeBuildConfiguration *bc)
this, [this, buildDirChooser, stretcher]() {
m_configModel->setConfiguration(m_buildConfiguration->configurationFromCMake());
m_configView->expandAll();
+ m_configView->setEnabled(true);
stretcher->stretch();
updateButtonState();
buildDirChooser->triggerChanged(); // refresh valid state...