GameList: QSortFilterProxyModel should provide strict weak ordering

This commit is contained in:
booto 2018-08-08 23:59:58 -04:00
parent 7be818a354
commit aef446697d
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ bool ListProxyModel::filterAcceptsRow(int source_row, const QModelIndex& source_
bool ListProxyModel::lessThan(const QModelIndex& left, const QModelIndex& right) const bool ListProxyModel::lessThan(const QModelIndex& left, const QModelIndex& right) const
{ {
if (left.data(Qt::InitialSortOrderRole) != right.data(Qt::InitialSortOrderRole)) 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 // If two items are otherwise equal, compare them by their title
const auto right_title = const auto right_title =