summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2020-04-26 13:55:26 -0400
committerGravatar GitHub2020-04-26 13:55:26 -0400
commit378aed07e988f5a3c0f66b38edc22732d8b91eb6 (patch)
tree108ae174393bc2ec2fc2826990b721f61d2d08db
parentMerge pull request #3744 from lioncash/table2 (diff)
parentFix the mistake in the port and update the comment for clarity (diff)
downloadyuzu-378aed07e988f5a3c0f66b38edc22732d8b91eb6.tar.gz
yuzu-378aed07e988f5a3c0f66b38edc22732d8b91eb6.tar.xz
yuzu-378aed07e988f5a3c0f66b38edc22732d8b91eb6.zip
Merge pull request #3795 from vitor-k/fix-folder
Fix "Port citra-emu/citra#4956: "Fixes to game list sorting" #3611"
-rw-r--r--src/yuzu/game_list_p.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/yuzu/game_list_p.h b/src/yuzu/game_list_p.h
index 3e6d5a7cd..0cd0054c8 100644
--- a/src/yuzu/game_list_p.h
+++ b/src/yuzu/game_list_p.h
@@ -126,13 +126,6 @@ public:
126 126
127 return GameListItem::data(role); 127 return GameListItem::data(role);
128 } 128 }
129
130 /**
131 * Override to prevent automatic sorting.
132 */
133 bool operator<(const QStandardItem& other) const override {
134 return false;
135 }
136}; 129};
137 130
138class GameListItemCompat : public GameListItem { 131class GameListItemCompat : public GameListItem {
@@ -279,6 +272,13 @@ public:
279 return static_cast<int>(dir_type); 272 return static_cast<int>(dir_type);
280 } 273 }
281 274
275 /**
276 * Override to prevent automatic sorting between folders and the addDir button.
277 */
278 bool operator<(const QStandardItem& other) const override {
279 return false;
280 }
281
282private: 282private:
283 GameListItemType dir_type; 283 GameListItemType dir_type;
284}; 284};