Skip to content

Commit

Permalink
GameList: QSortFilterProxyModel should provide strict weak ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
booto committed Aug 9, 2018
1 parent 7be818a commit aef4466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/DolphinQt/GameList/ListProxyModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ bool ListProxyModel::filterAcceptsRow(int source_row, const QModelIndex& source_
bool ListProxyModel::lessThan(const QModelIndex& left, const QModelIndex& right) const
{
if (left.data(Qt::InitialSortOrderRole) != right.data(Qt::InitialSortOrderRole))
return !QSortFilterProxyModel::lessThan(left, right);
return QSortFilterProxyModel::lessThan(right, left);

// If two items are otherwise equal, compare them by their title
const auto right_title =
Expand Down

0 comments on commit aef4466

Please sign in to comment.