mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
Some more fixes:
* sort order in compare was inverted * correct message when model is empty
This commit is contained in:
@@ -252,7 +252,7 @@ namespace BlackGui
|
||||
{
|
||||
int c = a.comparePropertyByIndex(b, index);
|
||||
if (c == 0) { return false; }
|
||||
return (order == Qt::AscendingOrder) ? (c > 0) : (c < 0);
|
||||
return (order == Qt::AscendingOrder) ? (c < 0) : (c > 0);
|
||||
}
|
||||
|
||||
//! Sort without compare function
|
||||
|
||||
Reference in New Issue
Block a user