From 743f73e4a3c9e306b3c03d73b1d8cd3b7310d400 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 20 Sep 2016 12:38:23 -0700 Subject: Don't look up the setting again This caused us to do the wrong thing if the setting wasn't set at all. Signed-off-by: Dirk Hohndel --- core/qthelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/qthelper.cpp b/core/qthelper.cpp index f34547882..282b0d1b1 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -494,7 +494,7 @@ QString uiLanguage(QLocale *callerLoc) s.beginGroup("Language"); GET_BOOL("UseSystemLanguage", locale.use_system_language); - if (!s.value("UseSystemLanguage", true).toBool()) { + if (!prefs.locale.use_system_language) { loc = QLocale(s.value("UiLanguage", QLocale().uiLanguages().first()).toString()); } else { loc = QLocale(QLocale().uiLanguages().first()); -- cgit v1.2.3-70-g09d2