summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2021-01-11 09:03:13 +0100
committerAndy Shaw <andy.shaw@qt.io>2021-01-14 21:42:02 +0100
commita00146cbcf207b97bf2bbba7544290293f6d167e (patch)
tree4a65e92152ed2725ddef484dc436b187ae3fc38f
parent1f1b46c2046736c945a87ea1f37afa419675d7c7 (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>
-rw-r--r--src/libs/installer/component.cpp2
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()));