From d85a41ad75b644e86d3b26400b0d49653b0f5d50 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 20 Jan 2021 11:30:14 +0800 Subject: [PATCH] Disable translation of program name --- src/gui/mainwindow.cpp | 2 +- src/gui/properties/propertieswidget.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 48b54dd6f..291f7260b 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -1916,7 +1916,7 @@ void MainWindow::handleUpdateCheckFinished(bool updateAvailable, QString newVers } else if (invokedByUser) { - QMessageBox::information(this, tr("qBittorrent"), + QMessageBox::information(this, QLatin1String("qBittorrent"), tr("No updates available.\nYou are already using the latest version.")); } sender()->deleteLater(); diff --git a/src/gui/properties/propertieswidget.cpp b/src/gui/properties/propertieswidget.cpp index 3c692ab44..cdb68da86 100644 --- a/src/gui/properties/propertieswidget.cpp +++ b/src/gui/properties/propertieswidget.cpp @@ -800,7 +800,7 @@ void PropertiesWidget::editWebSeed() if (!m_ui->listWebSeeds->findItems(newSeed, Qt::MatchFixedString).empty()) { - QMessageBox::warning(this, tr("qBittorrent"), + QMessageBox::warning(this, QLatin1String("qBittorrent"), tr("This URL seed is already in the list."), QMessageBox::Ok); return;