1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 23:07:59 +00:00

Suppress warning

Seems `lupdate` tool cannot correctly recognize the class/context of `tr()` here, so specify the
class/context manually.
This commit is contained in:
Chocobo1 2022-09-03 15:22:55 +08:00
parent 9877ff330e
commit fb37b0c147
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

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