forked from qt-creator/qt-creator
CMake: Use current pattern to access main settings page
Change-Id: I95c556bebe1d583879b6702f727d9a859b9a4bcb Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -142,11 +142,11 @@ void CMakeToolManager::restoreCMakeTools()
|
||||
|
||||
// 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()) {
|
||||
Internal::CMakeSpecificSettings &s = Internal::settings();
|
||||
if (s.autorunCMake() == s.autorunCMake.defaultValue()) {
|
||||
CMakeTool *cmake = defaultCMakeTool();
|
||||
settings->autorunCMake.setValue(cmake ? cmake->isAutoRun() : true);
|
||||
settings->writeSettings();
|
||||
s.autorunCMake.setValue(cmake ? cmake->isAutoRun() : true);
|
||||
s.writeSettings();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user