summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-04-26 13:55:26 -0400
committerGitHub <noreply@github.com>2020-04-26 13:55:26 -0400
commit378aed07e988f5a3c0f66b38edc22732d8b91eb6 (patch)
tree108ae174393bc2ec2fc2826990b721f61d2d08db
parent11e1629d898d5f66bde9817f2453f5a072a2e6a0 (diff)
parentdffcff9fec215e076e35545c4de46240e2550392 (diff)
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:
return GameListItem::data(role);
}
-
- /**
- * Override to prevent automatic sorting.
- */
- bool operator<(const QStandardItem& other) const override {
- return false;
- }
};
class GameListItemCompat : public GameListItem {
@@ -279,6 +272,13 @@ public:
return static_cast<int>(dir_type);
}
+ /**
+ * Override to prevent automatic sorting between folders and the addDir button.
+ */
+ bool operator<(const QStandardItem& other) const override {
+ return false;
+ }
+
private:
GameListItemType dir_type;
};