aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/qthelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp
index 6d33be383..b8e4822a3 100644
--- a/core/qthelper.cpp
+++ b/core/qthelper.cpp
@@ -466,7 +466,7 @@ QString uiLanguage(QLocale *callerLoc)
else
uiLang = languages[0];
- prefs.locale.lang_locale = copy_qstring(uiLang);
+ qPrefLanguage::set_lang_locale(uiLang);
// there's a stupid Qt bug on MacOS where uiLanguages doesn't give us the country info
if (!uiLang.contains('-') && uiLang != loc.bcp47Name()) {