forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user