Преглед изворни кода

Merge pull request #5139 from lioncash/deprecated-qt

game_list_p: Resolve deprecated usage of QVariant operator<
bunnei пре 5 година
родитељ
комит
c67c25db05
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/yuzu/game_list_p.h

+ 2 - 1
src/yuzu/game_list_p.h

@@ -174,7 +174,8 @@ public:
     }
     }
 
 
     bool operator<(const QStandardItem& other) const override {
     bool operator<(const QStandardItem& other) const override {
-        return data(CompatNumberRole) < other.data(CompatNumberRole);
+        return data(CompatNumberRole).value<QString>() <
+               other.data(CompatNumberRole).value<QString>();
     }
     }
 };
 };