mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue