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:
Dirk Hohndel 2016-09-20 12:38:23 -07:00
parent a31dd6c1c0
commit 743f73e4a3

View file

@ -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());