Merge pull request #8958 from jordan-woyak/sort-fix

DolphinQt: Fix default sort direction of game list.
This commit is contained in:
LC 2020-07-16 21:20:43 -04:00 committed by GitHub
commit a7e475e57b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
{
if (left.data(Qt::InitialSortOrderRole) != right.data(Qt::InitialSortOrderRole))
return QSortFilterProxyModel::lessThan(right, left);
return QSortFilterProxyModel::lessThan(left, right);
// If two items are otherwise equal, compare them by their title
const auto right_title =