summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-12-06 09:45:23 +0100
committerGitHub <noreply@github.com>2020-12-06 09:45:23 +0100
commitc67c25db05aeefa8612c95f1b8a47da23a6c3ed3 (patch)
tree1ac09f1bcaa49ca7d49c6e0206f4b7fe309438d3
parentMerge pull request #5133 from lioncash/video-shadow2 (diff)
parentgame_list_p: Resolve deprecated usage of QVariant operator< (diff)
downloadyuzu-c67c25db05aeefa8612c95f1b8a47da23a6c3ed3.tar
yuzu-c67c25db05aeefa8612c95f1b8a47da23a6c3ed3.tar.gz
yuzu-c67c25db05aeefa8612c95f1b8a47da23a6c3ed3.tar.bz2
yuzu-c67c25db05aeefa8612c95f1b8a47da23a6c3ed3.tar.lz
yuzu-c67c25db05aeefa8612c95f1b8a47da23a6c3ed3.tar.xz
yuzu-c67c25db05aeefa8612c95f1b8a47da23a6c3ed3.tar.zst
yuzu-c67c25db05aeefa8612c95f1b8a47da23a6c3ed3.zip
-rw-r--r--src/yuzu/game_list_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/yuzu/game_list_p.h b/src/yuzu/game_list_p.h
index 248855aff..df935022d 100644
--- a/src/yuzu/game_list_p.h
+++ b/src/yuzu/game_list_p.h
@@ -174,7 +174,8 @@ public:
}
bool operator<(const QStandardItem& other) const override {
- return data(CompatNumberRole) < other.data(CompatNumberRole);
+ return data(CompatNumberRole).value<QString>() <
+ other.data(CompatNumberRole).value<QString>();
}
};