summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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};