Qt: Correct behavior of sorting in game list model

Turns out Qt inverts it for us.
This commit is contained in:
Connor McLaughlin
2021-11-10 13:35:39 +10:00
parent fca4a2ec28
commit a2223124ad
3 changed files with 29 additions and 40 deletions

View File

@@ -24,8 +24,7 @@ public:
bool lessThan(const QModelIndex& source_left, const QModelIndex& source_right) const override
{
const bool ascending = sortOrder() == Qt::AscendingOrder;
return m_model->lessThan(source_left, source_right, source_left.column(), ascending);
return m_model->lessThan(source_left, source_right, source_left.column());
}
private: