diff options
author | jan Iversen <jani@apache.org> | 2019-02-01 20:34:34 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-27 03:41:20 +0900 |
commit | 573a4a5e2da9531fbaa9e82da57131edc691a851 (patch) | |
tree | 6240a5c2c9cdd3b12a4f5201f2e5c1cfc9a1d032 /core/qthelper.cpp | |
parent | 7198b2efc67224e305948b13f9b2a4aeffc7accf (diff) | |
download | subsurface-573a4a5e2da9531fbaa9e82da57131edc691a851.tar.gz |
core: use set_lang_locale to modify prefs.locale.lang_locale
Do not set prefs.locale_lang_locale directly, but do it
indirectly through qPrefLanguage::set_lang_locale(),
to ensure the file plist is consistent with prefs.
the difference (prefs. contra plist) cause surprises
when restarting mobile (and playing with language).
Signed-off-by: Jan Iversen <jani@apache.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 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()) { |