From 120d8904be7e4ee638a5f5dd69f1cb8564753de4 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 25 Jan 2022 01:45:14 +0100 Subject: [PATCH] Properly compare strings No need to modify the strings to ignore the casing --- components/mobilehomescreencomponents/applicationlistmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mobilehomescreencomponents/applicationlistmodel.cpp b/components/mobilehomescreencomponents/applicationlistmodel.cpp index 9db77ef0..0b1b99b4 100644 --- a/components/mobilehomescreencomponents/applicationlistmodel.cpp +++ b/components/mobilehomescreencomponents/applicationlistmodel.cpp @@ -98,7 +98,7 @@ void ApplicationListModel::sycocaDbChanged(const QStringList &changes) 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()