mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Revert "core: use set_lang_locale to modify prefs.locale.lang_locale"
This reverts commit 573a4a5e2d
.
The commit broke setting the language in the desktop preferences:
Instead of setting the locale in the prefs struct, the locale
is set via qPrefLanguage. However, that saves the default language
(extracted from the system) to disk. Now when the language is
read from the preferences, we get that default value.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f9b8d16a0d
commit
2db7d5cc23
1 changed files with 1 additions and 1 deletions
|
@ -471,7 +471,7 @@ QString uiLanguage(QLocale *callerLoc)
|
|||
else
|
||||
uiLang = languages[0];
|
||||
|
||||
qPrefLanguage::set_lang_locale(uiLang);
|
||||
prefs.locale.lang_locale = copy_qstring(uiLang);
|
||||
|
||||
// there's a stupid Qt bug on MacOS where uiLanguages doesn't give us the country info
|
||||
if (!uiLang.contains('-') && uiLang != loc.bcp47Name()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue