forked from qt-creator/qt-creator
CMakePM: Store CMake Autorun state for all tools
Amends 2f39b51bdc
The default tool's value is taken as default global value,
then will be saved for all tools.
This fixes the case when the false Autorun value for the default
CMake tool would always be set as global autorun with no option
to actually set global Autorun value due to the "upgrade" path
mechanism.
Change-Id: I17076bc0c77b087c5d4048fdfe74ddf91d837fd4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -141,6 +141,7 @@ void CMakeToolManager::restoreCMakeTools()
|
||||
emit m_instance->cmakeToolsLoaded();
|
||||
|
||||
// Store the default CMake tool "Autorun CMake" value globally
|
||||
// TODO: Remove in Qt Creator 13
|
||||
auto settings = Internal::CMakeSpecificSettings::instance();
|
||||
if (settings->autorunCMake.value() == settings->autorunCMake.defaultValue()) {
|
||||
CMakeTool *cmake = defaultCMakeTool();
|
||||
|
||||
Reference in New Issue
Block a user