forked from qt-creator/qt-creator
ProfileManager: Do not save settings when they were not yet loaded
Change-Id: I56fd9e62496d88d556625b3409ddfbb3adde5499 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -225,6 +225,9 @@ ProfileManager::~ProfileManager()
|
||||
|
||||
void ProfileManager::saveProfiles()
|
||||
{
|
||||
if (!d->m_initialized) // ignore save requests while we are not initialized.
|
||||
return;
|
||||
|
||||
PersistentSettingsWriter writer;
|
||||
writer.saveValue(QLatin1String(PROFILE_FILE_VERSION_KEY), 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user