summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qlocale.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-02-05 16:59:04 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-02-09 13:29:22 +0100
commitf218d895223df9fe8cbe6eca56d182533be71cd3 (patch)
tree53713f37c4f11afc7279712643e3d47cd6d884b8 /src/corelib/text/qlocale.cpp
parent13ae47d98057c2ddca8c865b845973d7e4c8dd8b (diff)
Clarify what QSystemLocale::fallbackLocale() is used for
Change-Id: I8f073f996505ccb42020b32fd76520ecef54e628 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/text/qlocale.cpp')
-rw-r--r--src/corelib/text/qlocale.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/text/qlocale.cpp b/src/corelib/text/qlocale.cpp
index ed1f0e818d..ba64ffd761 100644
--- a/src/corelib/text/qlocale.cpp
+++ b/src/corelib/text/qlocale.cpp
@@ -707,7 +707,7 @@ static void updateSystemPrivate()
sys_locale->query(QSystemLocale::LocaleChanged);
// Populate global with fallback as basis:
- globalLocaleData = locale_data[sys_locale->fallbackUiLocaleIndex()];
+ globalLocaleData = locale_data[sys_locale->fallbackLocaleIndex()];
QVariant res = sys_locale->query(QSystemLocale::LanguageId);
if (!res.isNull()) {
@@ -4240,7 +4240,7 @@ QStringList QLocale::uiLanguages() const
for (const auto &entry : uiLanguages)
locales.append(QLocale(entry));
if (locales.isEmpty())
- locales.append(systemLocale()->fallbackUiLocale());
+ locales.append(systemLocale()->fallbackLocale());
} else
#endif
{