1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 07:18:08 +00:00

Add changelog link in program updater

Closes #8997.
This commit is contained in:
Chocobo1 2018-05-29 17:21:24 +08:00
parent 15153a4446
commit 68c6ddf05d
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -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.") + "<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());