mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-05 04:53:54 -07:00
parent
4d7024e066
commit
a304d4235d
1 changed files with 1 additions and 1 deletions
|
|
@ -308,7 +308,7 @@ bool UserListTWI::operator<(const QTreeWidgetItem &other) const
|
||||||
return data(0, Qt::UserRole + 1).toBool();
|
return data(0, Qt::UserRole + 1).toBool();
|
||||||
|
|
||||||
// Sort by user level
|
// Sort by user level
|
||||||
if (data(0, Qt::UserRole) != other.data(0, Qt::UserRole))
|
if ((data(0, Qt::UserRole).toInt() & 15) != (other.data(0, Qt::UserRole).toInt() & 15))
|
||||||
return (data(0, Qt::UserRole).toInt() & 15) > (other.data(0, Qt::UserRole).toInt() & 15);
|
return (data(0, Qt::UserRole).toInt() & 15) > (other.data(0, Qt::UserRole).toInt() & 15);
|
||||||
|
|
||||||
// Sort by name
|
// Sort by name
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue