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 <dirk@hohndel.org>
This commit is contained in:
parent
a31dd6c1c0
commit
743f73e4a3
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user