From fb37b0c147c069d4dbc4246f994841c1dba353d9 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 3 Sep 2022 15:22:55 +0800 Subject: [PATCH] Suppress warning Seems `lupdate` tool cannot correctly recognize the class/context of `tr()` here, so specify the class/context manually. --- src/app/application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/application.cpp b/src/app/application.cpp index acd650f5a..4e69fd236 100644 --- a/src/app/application.cpp +++ b/src/app/application.cpp @@ -842,7 +842,7 @@ catch (const RuntimeError &err) #else QMessageBox msgBox; msgBox.setIcon(QMessageBox::Critical); - msgBox.setText(tr("Application failed to start.")); + msgBox.setText(QCoreApplication::translate("Application", "Application failed to start.")); msgBox.setInformativeText(err.message()); msgBox.show(); // Need to be shown or to moveToCenter does not work msgBox.move(Utils::Gui::screenCenter(&msgBox));