locale aware user sorting
This commit is contained in:
parent
b38f0e2100
commit
7d23569952
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ bool UserListTWI::operator<(const QTreeWidgetItem &other) const
|
|||
return data(0, Qt::UserRole).toInt() > other.data(0, Qt::UserRole).toInt();
|
||||
|
||||
// Sort by name
|
||||
return data(2, Qt::UserRole).toString().toLower() < other.data(2, Qt::UserRole).toString().toLower();
|
||||
return QString::localeAwareCompare(data(2, Qt::UserRole).toString(), other.data(2, Qt::UserRole).toString()) < 0;
|
||||
}
|
||||
|
||||
UserList::UserList(TabSupervisor *_tabSupervisor, AbstractClient *_client, UserListType _type, QWidget *parent)
|
||||
|
|
Loading…
Reference in a new issue