Properly compare strings

No need to modify the strings to ignore the casing
This commit is contained in:
Aleix Pol 2022-01-25 01:45:14 +01:00
parent 1eee1935cc
commit 120d8904be

View file

@ -98,7 +98,7 @@ void ApplicationListModel::sycocaDbChanged(const QStringList &changes)
bool appNameLessThan(const ApplicationListModel::ApplicationData &a1, const ApplicationListModel::ApplicationData &a2) bool appNameLessThan(const ApplicationListModel::ApplicationData &a1, const ApplicationListModel::ApplicationData &a2)
{ {
return a1.name.toLower() < a2.name.toLower(); return a1.name.compare(a2.name, Qt::CaseInsensitive) < 0;
} }
void ApplicationListModel::initWayland() void ApplicationListModel::initWayland()