From 1e0ac5c5f161e018967a058272d35bde00397f18 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Fri, 26 Jun 2015 13:54:47 +0800 Subject: [PATCH 1/2] Capitalize menu item, missed in b4a855f. --- src/gui/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 95dbf7f27..3d578d592 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -1441,7 +1441,7 @@ void MainWindow::handleUpdateCheckFinished(bool update_available, QString new_ve } sender()->deleteLater(); actionCheck_for_updates->setEnabled(true); - actionCheck_for_updates->setText(tr("Check for updates")); + actionCheck_for_updates->setText(tr("Check for Updates")); actionCheck_for_updates->setToolTip(tr("Check for program updates")); // Don't bother the user again in this session if he chose to ignore the update if (Preferences::instance()->isUpdateCheckEnabled() && answer == QMessageBox::Yes) @@ -1539,7 +1539,7 @@ void MainWindow::checkProgramUpdate() { programUpdateTimer.stop(); // If the user had clicked the menu item actionCheck_for_updates->setEnabled(false); - actionCheck_for_updates->setText(tr("Checking for updates...")); + actionCheck_for_updates->setText(tr("Checking for Updates...")); actionCheck_for_updates->setToolTip(tr("Already checking for program updates in the background")); bool invokedByUser = actionCheck_for_updates == qobject_cast(sender()); ProgramUpdater *updater = new ProgramUpdater(this, invokedByUser); From 3efb3110760a07ab96a6e54a2572e409e51dea50 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Fri, 26 Jun 2015 14:10:41 +0800 Subject: [PATCH 2/2] Better message for users --- src/gui/mainwindow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 3d578d592..c5149b8ae 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -1426,8 +1426,8 @@ void MainWindow::handleUpdateCheckFinished(bool update_available, QString new_ve { QMessageBox::StandardButton answer = QMessageBox::Yes; if (update_available) { - answer = QMessageBox::question(this, tr("A new version is available"), - tr("A new version of qBittorrent is available on Sourceforge.\nWould you like to update qBittorrent to version %1?").arg(new_version), + answer = QMessageBox::question(this, tr("Update Available"), + tr("A new version is available.\nUpdate to version %1?").arg(new_version), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes); if (answer == QMessageBox::Yes) { // The user want to update, let's download the update @@ -1436,12 +1436,12 @@ void MainWindow::handleUpdateCheckFinished(bool update_available, QString new_ve } } else if (invokedByUser) { - QMessageBox::information(this, tr("There isn't a new version available"), - tr("There isn't a new version of qBittorrent available on Sourceforge")); + QMessageBox::information(this, tr("Already Using the Latest Version"), + tr("No updates available.\nYou are already using the latest version.")); } sender()->deleteLater(); actionCheck_for_updates->setEnabled(true); - actionCheck_for_updates->setText(tr("Check for Updates")); + actionCheck_for_updates->setText(tr("&Check for Updates")); actionCheck_for_updates->setToolTip(tr("Check for program updates")); // Don't bother the user again in this session if he chose to ignore the update if (Preferences::instance()->isUpdateCheckEnabled() && answer == QMessageBox::Yes)