From a00146cbcf207b97bf2bbba7544290293f6d167e Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Mon, 11 Jan 2021 09:03:13 +0100 Subject: 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 --- src/libs/installer/component.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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())); -- cgit v1.2.3