From 82a1ec0c3ab98aecd28efdd6e1956991aba9ca3d Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Thu, 25 Jan 2024 01:04:10 -0600 Subject: [PATCH] Qt: Fix use of tr outside of Qt class --- pcsx2-qt/QtUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2-qt/QtUtils.cpp b/pcsx2-qt/QtUtils.cpp index c0a2c5924f71c..15c8b6523b226 100644 --- a/pcsx2-qt/QtUtils.cpp +++ b/pcsx2-qt/QtUtils.cpp @@ -172,8 +172,8 @@ namespace QtUtils { if (!QDesktopServices::openUrl(qurl)) { - QMessageBox::critical(parent, QObject::tr("Failed to open URL"), - QObject::tr("Failed to open URL.\n\nThe URL was: %1").arg(qurl.toString())); + QMessageBox::critical(parent, QCoreApplication::translate("FileOperations", "Failed to open URL"), + QCoreApplication::translate("FileOperations", "Failed to open URL.\n\nThe URL was: %1").arg(qurl.toString())); } }