forked from qt-creator/qt-creator
Utils: Make PagedSettings::readSettings() calls shorter
Ideally, this would not be needed on the user code side at all, but there's no way to ensure the settings are read timing before sibling constructors might need it. So keep the 'poor man's two-phase initialization', but make it less intrusive. Change-Id: Ica7f6510cd05072d7286f4e85cd72c494e8f10f8 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -95,7 +95,7 @@ CMakeSpecificSettings::CMakeSpecificSettings()
|
||||
showAdvancedOptionsByDefault.setLabelText(
|
||||
::CMakeProjectManager::Tr::tr("Show advanced options by default"));
|
||||
|
||||
readSettings(Core::ICore::settings());
|
||||
readSettings();
|
||||
}
|
||||
|
||||
} // CMakeProjectManager::Internal
|
||||
|
||||
Reference in New Issue
Block a user