forked from qt-creator/qt-creator
CMakeSettings: Do not break most of other settings
Just do not return early, which then missed a settings->endGroup() call.
Fixes a regression introduced by
99e9643dea
Change-Id: I102eb76e3381012cddb73c1132b6443dd2cd592f
Task-number: QTCREATORBUG-14139
Task-number: QTCREATORBUG-14140
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
@@ -136,9 +136,7 @@ static void readAndDeleteLegacyCMakeSettings ()
|
||||
settings->beginGroup(QLatin1String("CMakeSettings"));
|
||||
|
||||
FileName exec = FileName::fromUserInput(settings->value(QLatin1String("cmakeExecutable")).toString());
|
||||
if (!exec.toFileInfo().isExecutable())
|
||||
return;
|
||||
|
||||
if (exec.toFileInfo().isExecutable()) {
|
||||
CMakeTool *item = CMakeToolManager::findByCommand(exec);
|
||||
if (!item) {
|
||||
item = new CMakeTool(CMakeTool::ManualDetection);
|
||||
@@ -154,6 +152,7 @@ static void readAndDeleteLegacyCMakeSettings ()
|
||||
//this setting used to be the default cmake, make sure it is again
|
||||
if (item)
|
||||
d->m_defaultCMake = item->id();
|
||||
}
|
||||
|
||||
//read the legacy ninja setting, if its not available use the current value
|
||||
d->m_preferNinja = settings->value(QLatin1String("preferNinja"), d->m_preferNinja).toBool();
|
||||
|
||||
Reference in New Issue
Block a user