From 68c6ddf05d689d46249f99de1bf10cb14fc661b0 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 29 May 2018 17:21:24 +0800 Subject: [PATCH] Add changelog link in program updater Closes #8997. --- src/gui/mainwindow.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 61e48b19e..6ef36a58a 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -1833,9 +1833,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.") + "
" + + tr("Do you want to download %1?").arg(newVersion) + "

" + + QString("%1").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(sender());