diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2016-10-28 12:01:09 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-10-28 07:31:50 -0700 |
commit | 540075962c7d31101cef2f0037392156d3cb3339 (patch) | |
tree | 51337fd75403c99df24c8849b8be9c417f9fe902 /core/subsurface-qt | |
parent | d7f339ade767ddfd8aa0cdfed7e73646ae29064a (diff) | |
download | subsurface-540075962c7d31101cef2f0037392156d3cb3339.tar.gz |
Correctly load the language based prefs
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/subsurface-qt')
-rw-r--r-- | core/subsurface-qt/SettingsObjectWrapper.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp index 538ad8847..0cd0568b4 100644 --- a/core/subsurface-qt/SettingsObjectWrapper.cpp +++ b/core/subsurface-qt/SettingsObjectWrapper.cpp @@ -2295,6 +2295,9 @@ void SettingsObjectWrapper::load() s.beginGroup("Language"); prefs.locale.lang_locale = copy_string(qPrintable(s.value("UiLangLocale").toString())); + prefs.time_format = copy_string(qPrintable(s.value("time_format").toString())); + prefs.date_format = copy_string(qPrintable(s.value("date_format").toString())); + prefs.date_format_short = copy_string(qPrintable(s.value("date_format_short").toString())); s.endGroup(); } |