Qt: Correct behavior of sorting in game list model
Turns out Qt inverts it for us.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user