summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-04-26 19:55:26 +0200
committerGitHub <noreply@github.com>2020-04-26 19:55:26 +0200
commit378aed07e988f5a3c0f66b38edc22732d8b91eb6 (patch)
tree108ae174393bc2ec2fc2826990b721f61d2d08db /src
parentMerge pull request #3744 from lioncash/table2 (diff)
parentFix the mistake in the port and update the comment for clarity (diff)
downloadyuzu-378aed07e988f5a3c0f66b38edc22732d8b91eb6.tar
yuzu-378aed07e988f5a3c0f66b38edc22732d8b91eb6.tar.gz
yuzu-378aed07e988f5a3c0f66b38edc22732d8b91eb6.tar.bz2
yuzu-378aed07e988f5a3c0f66b38edc22732d8b91eb6.tar.lz
yuzu-378aed07e988f5a3c0f66b38edc22732d8b91eb6.tar.xz
yuzu-378aed07e988f5a3c0f66b38edc22732d8b91eb6.tar.zst
yuzu-378aed07e988f5a3c0f66b38edc22732d8b91eb6.zip
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:
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;
};