Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Properly exit double loop when retrieving the localized font name.
Wolthera van Hövell tot Westerflier93db8c3069e6
diff --git a/plugins/dockers/textproperties/TagFilterProxyModelQmlWrapper.cpp b/plugins/dockers/textproperties/TagFilterProxyModelQmlWrapper.cppindex 78d788aaab..34a7a3b75d 100644--- a/plugins/dockers/textproperties/TagFilterProxyModelQmlWrapper.cpp+++ b/plugins/dockers/textproperties/TagFilterProxyModelQmlWrapper.cpp@@ -154,12 +154,15 @@ QString TagFilterProxyModelQmlWrapper::localizedNameFromMetadata(Q_FOREACH(const QString locale, locales) {const QLocale l(locale);+ bool found = false;Q_FOREACH(const QString key, localizedNames.keys()) {if (QLocale(key) == l) {name = localizedNames.value(key, name).toString();+ found = true;break;}}+ if (found) break;}return name;}