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++
Don't use str.toLower() in KisTagFilterResourceProxyModel::lessThan
Dmitry Kazakov749becbea42d
diff --git a/libs/resources/KisTagFilterResourceProxyModel.cpp b/libs/resources/KisTagFilterResourceProxyModel.cppindex b20922194a..003b948fac 100644--- a/libs/resources/KisTagFilterResourceProxyModel.cpp+++ b/libs/resources/KisTagFilterResourceProxyModel.cpp@@ -403,6 +403,7 @@ bool KisTagFilterResourceProxyModel::lessThan(const QModelIndex &source_left, co{QString nameLeft = sourceModel()->data(source_left, Qt::UserRole + KisAbstractResourceModel::Name).toString();QString nameRight = sourceModel()->data(source_right, Qt::UserRole + KisAbstractResourceModel::Name).toString();- return nameLeft.toLower() < nameRight.toLower();++ return nameLeft.compare(nameRight, Qt::CaseInsensitive) < 0;}