summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitor Kiguchi <vitor-kiguchi@hotmail.com>2020-04-25 20:01:20 +0200
committerVitor Kiguchi <vitor-kiguchi@hotmail.com>2020-04-25 20:01:20 +0200
commitdffcff9fec215e076e35545c4de46240e2550392 (patch)
tree2c94d7cbfce0c451f4e296374bd051bb5af03b4f
parentMerge pull request #3721 from ReinUsesLisp/sort-devices (diff)
downloadyuzu-dffcff9fec215e076e35545c4de46240e2550392.tar
yuzu-dffcff9fec215e076e35545c4de46240e2550392.tar.gz
yuzu-dffcff9fec215e076e35545c4de46240e2550392.tar.bz2
yuzu-dffcff9fec215e076e35545c4de46240e2550392.tar.lz
yuzu-dffcff9fec215e076e35545c4de46240e2550392.tar.xz
yuzu-dffcff9fec215e076e35545c4de46240e2550392.tar.zst
yuzu-dffcff9fec215e076e35545c4de46240e2550392.zip
-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;
};