summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-09-22 22:07:42 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-09-22 22:07:42 -0700
commitf4ca863a91d79e191a9cdf18cd29d41ec71b0971 (patch)
treef75c1e3ee369d70d30d45461b425d00c70b448cf /core
parent14fff2fc93e21a9149d05527866e6130c1c81772 (diff)
downloadsubsurface-f4ca863a91d79e191a9cdf18cd29d41ec71b0971.tar.gz
Correctly pick up the UI language from settings
While Linux can set the locale from the language text, Windows needs the correct locale value (which makes more sense to use, anyway - that's why we save it). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r--core/qthelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp
index ce7bc3e65..0628dd2e3 100644
--- a/core/qthelper.cpp
+++ b/core/qthelper.cpp
@@ -495,7 +495,7 @@ QString uiLanguage(QLocale *callerLoc)
GET_BOOL("UseSystemLanguage", locale.use_system_language);
if (!prefs.locale.use_system_language) {
- loc = QLocale(s.value("UiLanguage", QLocale().uiLanguages().first()).toString());
+ loc = QLocale(s.value("UiLangLocale", QLocale().uiLanguages().first()).toString());
} else {
loc = QLocale(QLocale().uiLanguages().first());
}