diff --git a/src/app/upgrade.cpp b/src/app/upgrade.cpp index 5cf8dbec8..79455b53d 100644 --- a/src/app/upgrade.cpp +++ b/src/app/upgrade.cpp @@ -255,7 +255,7 @@ void handleChangedDefaults(const DefaultPreferencesMode mode) SettingsStorage *settingsStorage {SettingsStorage::instance()}; for (auto it = changedDefaults.cbegin(); it != changedDefaults.cend(); ++it) { - if (settingsStorage->loadValue(it->name).isNull()) + if (!settingsStorage->hasKey(it->name)) settingsStorage->storeValue(it->name, (mode == DefaultPreferencesMode::Legacy ? it->legacy : it->current)); } }