aboutsummaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/SettingsObjectWrapper.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2016-10-28 11:57:41 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-10-28 07:31:34 -0700
commitd7f339ade767ddfd8aa0cdfed7e73646ae29064a (patch)
tree6dfa5be0ee411e1352ea417b616e9195ee5d2f04 /core/subsurface-qt/SettingsObjectWrapper.cpp
parent324b1d2dfc885226c2df81e78ddea4b6098aeaf8 (diff)
downloadsubsurface-d7f339ade767ddfd8aa0cdfed7e73646ae29064a.tar.gz
Load system Language
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/subsurface-qt/SettingsObjectWrapper.cpp')
-rw-r--r--core/subsurface-qt/SettingsObjectWrapper.cpp5
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()