Qt: Fix use of tr outside of Qt class

This commit is contained in:
TellowKrinkle 2024-01-25 01:04:10 -06:00 committed by Connor McLaughlin
parent d65133451d
commit 82a1ec0c3a
1 changed files with 2 additions and 2 deletions

View File

@ -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()));
}
}