|
|
|
@ -1835,9 +1835,11 @@ void MainWindow::handleUpdateCheckFinished(bool updateAvailable, QString newVers
@@ -1835,9 +1835,11 @@ void MainWindow::handleUpdateCheckFinished(bool updateAvailable, QString newVers
|
|
|
|
|
{ |
|
|
|
|
QMessageBox::StandardButton answer = QMessageBox::Yes; |
|
|
|
|
if (updateAvailable) { |
|
|
|
|
answer = QMessageBox::question(this, tr("qBittorrent Update Available"), |
|
|
|
|
tr("A new version is available.\nDo you want to download %1?").arg(newVersion), |
|
|
|
|
QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes); |
|
|
|
|
answer = QMessageBox::question(this, tr("qBittorrent Update Available") |
|
|
|
|
, tr("A new version is available.") + "<br/>" |
|
|
|
|
+ tr("Do you want to download %1?").arg(newVersion) + "<br/><br/>" |
|
|
|
|
+ QString("<a href=\"https://www.qbittorrent.org/news.php\">%1</a>").arg(tr("Open changelog...")) |
|
|
|
|
, QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes); |
|
|
|
|
if (answer == QMessageBox::Yes) { |
|
|
|
|
// The user want to update, let's download the update
|
|
|
|
|
ProgramUpdater *updater = dynamic_cast<ProgramUpdater * >(sender()); |
|
|
|
|