Browse Source

Merge pull request #9008 from Chocobo1/changelog

Add changelog URL link in updater
adaptive-webui-19844
Mike Tzou 7 years ago committed by GitHub
parent
commit
731865427e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/gui/mainwindow.cpp

8
src/gui/mainwindow.cpp

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

Loading…
Cancel
Save