diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/subsurface-qt/SettingsObjectWrapper.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp index 7626befdb..538ad8847 100644 --- a/core/subsurface-qt/SettingsObjectWrapper.cpp +++ b/core/subsurface-qt/SettingsObjectWrapper.cpp @@ -1864,6 +1864,7 @@ void DisplaySettingsObjectWrapper::setDisplayInvalidDives(short value) return; QSettings s; + s.beginGroup(group); s.setValue("displayinvalid", value); prefs.display_invalid_dives = value; emit displayInvalidDivesChanged(value); @@ -2291,6 +2292,10 @@ void SettingsObjectWrapper::load() prefs.update_manager.last_version_used = copy_string(qPrintable(s.value("LastVersionUsed").toString())); prefs.update_manager.next_check = copy_string(qPrintable(s.value("NextCheck").toString())); s.endGroup(); + + s.beginGroup("Language"); + prefs.locale.lang_locale = copy_string(qPrintable(s.value("UiLangLocale").toString())); + s.endGroup(); } void SettingsObjectWrapper::sync() |