summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-09-20 12:40:30 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-09-20 12:40:30 -0700
commit5fdbc1ffc3c7b161e96e45e2a393eaf7b3bf853f (patch)
treeb6f9791b9ad6652354f8741b75747a756a629f7f /core
parent743f73e4a3c9e306b3c03d73b1d8cd3b7310d400 (diff)
downloadsubsurface-5fdbc1ffc3c7b161e96e45e2a393eaf7b3bf853f.tar.gz
Language preference: once we figure out the locale, remember it
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r--core/qthelper.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp
index 282b0d1b1..ce7bc3e65 100644
--- a/core/qthelper.cpp
+++ b/core/qthelper.cpp
@@ -509,6 +509,7 @@ QString uiLanguage(QLocale *callerLoc)
uiLang = languages[2];
else
uiLang = languages[0];
+ prefs.locale.lang_locale = copy_string(qPrintable(uiLang));
GET_BOOL("time_format_override", time_format_override);
GET_BOOL("date_format_override", date_format_override);
GET_TXT("time_format", time_format);