Browse Source

Suppress warning

Seems `lupdate` tool cannot correctly recognize the class/context of `tr()` here, so specify the
class/context manually.
adaptive-webui-19844
Chocobo1 2 years ago
parent
commit
fb37b0c147
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/app/application.cpp

2
src/app/application.cpp

@ -842,7 +842,7 @@ catch (const RuntimeError &err)
#else #else
QMessageBox msgBox; QMessageBox msgBox;
msgBox.setIcon(QMessageBox::Critical); 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.setInformativeText(err.message());
msgBox.show(); // Need to be shown or to moveToCenter does not work msgBox.show(); // Need to be shown or to moveToCenter does not work
msgBox.move(Utils::Gui::screenCenter(&msgBox)); msgBox.move(Utils::Gui::screenCenter(&msgBox));

Loading…
Cancel
Save