From fdf0825369c0f298d537fb06552d966a8d53ca51 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 5 Dec 2020 15:38:55 -0500 Subject: [PATCH] game_list_p: Resolve deprecated usage of QVariant operator< This is designated as obsolete in Qt's docs (see: https://doc.qt.io/qt-5/qvariant-obsolete.html#operator-lt) --- src/citra_qt/game_list_p.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/citra_qt/game_list_p.h b/src/citra_qt/game_list_p.h index 02d7283601..cde8445bcd 100644 --- a/src/citra_qt/game_list_p.h +++ b/src/citra_qt/game_list_p.h @@ -274,7 +274,8 @@ public: } bool operator<(const QStandardItem& other) const override { - return data(CompatNumberRole) < other.data(CompatNumberRole); + return data(CompatNumberRole).value() < + other.data(CompatNumberRole).value(); } };