Some more fixes:

* sort order in compare was inverted
* correct message when model is empty
This commit is contained in:
Klaus Basan
2015-12-09 03:52:15 +01:00
parent 541f29003c
commit 4daf0453cb
2 changed files with 5 additions and 3 deletions

View File

@@ -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