Permalink
Browse files

Merge pull request #7307 from booto/qsortfilter-strict-weak

GameList: QSortFilterProxyModel should provide strict weak ordering
  • Loading branch information...
delroth committed Aug 11, 2018
2 parents 91edc95 + aef4466 commit 55fa4842fbae70778093274ce07fcacbfaf85576
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Core/DolphinQt/GameList/ListProxyModel.cpp
@@ -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 =

0 comments on commit 55fa484

Please sign in to comment.