diff options
author | Fabian Müller <fmueller@owncloud.com> | 2021-04-08 18:31:54 +0300 |
---|---|---|
committer | Fabian Müller <80399010+fmoc@users.noreply.github.com> | 2021-04-08 19:01:34 +0300 |
commit | 53fd09d8cc5803693772dac83499f828fd757bc8 (patch) | |
tree | 4526a10a0c0e1966813559d3db2b185bb86281ff /src/gui/application.cpp | |
parent | 69fb4f40fd770ae6ed9829d3fcfd6413d41625ef (diff) |
Set up default locale correctly
Some widgets, e.g., QDateEdit, use locale-dependent formatting to display its results. Setting the default locale correctly makes sure these widgets respect the user-selected language.
Diffstat (limited to 'src/gui/application.cpp')
-rw-r--r-- | src/gui/application.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/application.cpp b/src/gui/application.cpp index c66cae173..843867c15 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -751,7 +751,7 @@ void Application::setupTranslations() installTranslator(qtkeychainTranslator); // makes sure widgets with locale-dependent formatting, e.g., QDateEdit, display the correct formatting - QLocale::setDefault(QLocale{lang}); + QLocale::setDefault(QLocale(lang)); break; } |