diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-09-20 12:38:23 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-09-20 12:38:23 -0700 |
commit | 743f73e4a3c9e306b3c03d73b1d8cd3b7310d400 (patch) | |
tree | 2c38099024b0993a444dac63ce8e1be38fa25e75 /core/qthelper.cpp | |
parent | a31dd6c1c04016f5548411700ca3c03dd3f6f625 (diff) | |
download | subsurface-743f73e4a3c9e306b3c03d73b1d8cd3b7310d400.tar.gz |
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>
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r-- | core/qthelper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |