Commit 5e7e72e7 authored by Dominik Haumann's avatar Dominik Haumann

Fixes sorting of items within Kate editor's session applet

Summary: I have session names of the form: "Project :: Some Project Name", which were not being sorted correctly. This patch allows the listing to be sorted properly.

Reviewers: #kate

Subscribers: dhaumann, omarplummer

Tags: #kate

Differential Revision: https://phabricator.kde.org/D10208
parent 7c9c1a4b
......@@ -37,12 +37,11 @@
#include <QStandardPaths>
#include <QDebug>
bool katesessions_compare_sessions(const QString &s1, const QString &s2) {
//return KStringHandler::naturalCompare(s1,s2)==-1;
return s1.compare(s2)==-1;
bool katesessions_compare_sessions(const QString &s1, const QString &s2)
{
return QString::localeAwareCompare(s1, s2) == -1;
}
KateSessionsModel::KateSessionsModel(QObject *parent)
: QStandardItemModel(parent) /*, m_config(0)*/
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment