Permalink
Browse files

GameList: QSortFilterProxyModel should provide strict weak ordering

  • Loading branch information...
booto committed Aug 9, 2018
1 parent 7be818a commit aef446697dd46c59e6a6f7d15caca8e7ed0caad3
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 aef4466

Please sign in to comment.