summaryrefslogtreecommitdiffstats
path: root/qt-gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r--qt-gui.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index a65621314..04c5bc17a 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -89,7 +89,12 @@ void init_ui(int *argcp, char ***argvp)
QSettings s;
s.beginGroup("Language");
- QLocale loc(s.value("UiLanguage", QLocale().uiLanguages().first()).toString());
+ QLocale loc;
+
+ if (!s.value("UseSystemLanguage", true).toBool()){
+ loc = QLocale(s.value("UiLanguage", QLocale().uiLanguages().first()).toString());
+ }
+
QString uiLang = loc.uiLanguages().first();
s.endGroup();