Only save user settings that are different from the app settings

preferencesAboutTextFull
Craig Watson 9 years ago
parent 85f14002a6
commit 8623acf397
  1. 5
      src/core/UBSettings.cpp

@ -479,7 +479,10 @@ void UBSettings::save()
QHash<QString, QVariant>::const_iterator it = mSettingsQueue.constBegin();
while (it != mSettingsQueue.constEnd()) {
mUserSettings->setValue(it.key(), it.value());
// We only save user settings that are different from the app settings
if (sAppSettings->value(it.key()) != it.value())
mUserSettings->setValue(it.key(), it.value());
++it;
}

Loading…
Cancel
Save