diff options
author | Andy Shaw <andy.shaw@qt.io> | 2021-01-11 09:03:13 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2021-01-14 21:42:02 +0100 |
commit | a00146cbcf207b97bf2bbba7544290293f6d167e (patch) | |
tree | 4a65e92152ed2725ddef484dc436b187ae3fc38f /src | |
parent | 1f1b46c2046736c945a87ea1f37afa419675d7c7 (diff) |
Don't call toLower() when using the lang for finding the license file
By calling toLower() it will go against what the expected format is
for a language such as zh-CN and as a result not find the license
file which is matching this language.
Change-Id: Ibdf7d57d3d2761db7b68edcabf5599b9404f3b7e
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/libs/installer/component.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/installer/component.cpp b/src/libs/installer/component.cpp index 16b417b02..5c74a2139 100644 --- a/src/libs/installer/component.cpp +++ b/src/libs/installer/component.cpp @@ -661,7 +661,7 @@ void Component::loadLicenses(const QString &directory, const QHash<QString, QVar break; QList<QFileInfo> fileCandidates; - foreach (const QString &locale, QInstaller::localeCandidates(lang.toLower())) { + foreach (const QString &locale, QInstaller::localeCandidates(lang)) { fileCandidates << QFileInfo(QString::fromLatin1("%1%2_%3.%4").arg( directory, fileInfo.baseName(), locale, fileInfo.completeSuffix())); |