Commit 393996f1 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

ProfileManager: Do not save settings when they were not yet loaded



Change-Id: I56fd9e62496d88d556625b3409ddfbb3adde5499
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent bb81ec7d
...@@ -225,6 +225,9 @@ ProfileManager::~ProfileManager() ...@@ -225,6 +225,9 @@ ProfileManager::~ProfileManager()
void ProfileManager::saveProfiles() void ProfileManager::saveProfiles()
{ {
if (!d->m_initialized) // ignore save requests while we are not initialized.
return;
PersistentSettingsWriter writer; PersistentSettingsWriter writer;
writer.saveValue(QLatin1String(PROFILE_FILE_VERSION_KEY), 1); writer.saveValue(QLatin1String(PROFILE_FILE_VERSION_KEY), 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment