From ed0e9e95930ae5f17e5d9e19d9f36a34cdfe9dec Mon Sep 17 00:00:00 2001 From: Kyle K <190571+Docteh@users.noreply.github.com> Date: Wed, 13 Apr 2022 13:29:59 -0700 Subject: [PATCH] ui: Fix Game Compatibility list translations Reported by GillianMC on Discord. Looks to be a small quirk in the QT API. setText(QObject::tr(status.text)); bringing up QObject breaks the link with the GameListItemCompat --- src/citra_qt/compatdb.ui | 2 +- src/citra_qt/game_list_p.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/citra_qt/compatdb.ui b/src/citra_qt/compatdb.ui index 2e00550f28..33519814c5 100644 --- a/src/citra_qt/compatdb.ui +++ b/src/citra_qt/compatdb.ui @@ -86,7 +86,7 @@ - Great + Great diff --git a/src/citra_qt/game_list_p.h b/src/citra_qt/game_list_p.h index cde8445bcd..26cbe081ee 100644 --- a/src/citra_qt/game_list_p.h +++ b/src/citra_qt/game_list_p.h @@ -264,8 +264,8 @@ public: } const CompatStatus& status = iterator->second; setData(compatibility, CompatNumberRole); - setText(QObject::tr(status.text)); - setToolTip(QObject::tr(status.tooltip)); + setText(tr(status.text)); + setToolTip(tr(status.tooltip)); setData(CreateCirclePixmapFromColor(status.color), Qt::DecorationRole); }