From 90f184bb956e44837146b0d8aee65153ed07d5f3 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 16 Feb 2023 21:25:19 +0200 Subject: [PATCH] Since Qt 6 changed name for Czech Republic. --- src/libs/vmisc/def.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libs/vmisc/def.cpp b/src/libs/vmisc/def.cpp index 129dddc97..ef37fe790 100644 --- a/src/libs/vmisc/def.cpp +++ b/src/libs/vmisc/def.cpp @@ -526,7 +526,12 @@ void InitLanguages(QComboBox *combobox) QLocale loc = QLocale(locale); QString lang = loc.nativeLanguageName(); // Since Qt 5.12 country names have spaces - QIcon ico(QString("://flags/%1.png").arg(QLocale::countryToString(loc.country()).remove(' '))); + QString country = QLocale::countryToString(loc.country()).remove(' '); + if (country == QLatin1String("Czechia")) + { + country = QLatin1String("CzechRepublic"); + } + QIcon ico(QString("://flags/%1.png").arg(country)); combobox->addItem(ico, lang, locale); }