From 30c6c37d6c242e2efe308a2dd3c9e8eb2faca09f Mon Sep 17 00:00:00 2001 From: BreadFish64 Date: Mon, 21 May 2018 20:55:19 -0500 Subject: [PATCH] fix jrowes lazy sorting --- src/citra_qt/multiplayer/host_room.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/citra_qt/multiplayer/host_room.cpp b/src/citra_qt/multiplayer/host_room.cpp index ecde21fd4..93804b1ee 100644 --- a/src/citra_qt/multiplayer/host_room.cpp +++ b/src/citra_qt/multiplayer/host_room.cpp @@ -161,8 +161,7 @@ QVariant ComboBoxProxyModel::data(const QModelIndex& idx, int role) const { } bool ComboBoxProxyModel::lessThan(const QModelIndex& left, const QModelIndex& right) const { - // TODO(jroweboy): Sort by game title not filename - auto leftData = left.data(Qt::DisplayRole).toString(); - auto rightData = right.data(Qt::DisplayRole).toString(); + auto leftData = left.data(GameListItemPath::TitleRole).toString(); + auto rightData = right.data(GameListItemPath::TitleRole).toString(); return leftData.compare(rightData) < 0; }