From 0b3e86e307dcb33b124dc2086f75dd92127bb534 Mon Sep 17 00:00:00 2001 From: ctrlaltca Date: Tue, 19 Jun 2018 19:57:44 +0200 Subject: [PATCH] Fix "reinstall" button in updater, fix #3293 (#3297) --- cockatrice/src/dlg_update.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cockatrice/src/dlg_update.cpp b/cockatrice/src/dlg_update.cpp index e0d1feb4..22619962 100644 --- a/cockatrice/src/dlg_update.cpp +++ b/cockatrice/src/dlg_update.cpp @@ -121,6 +121,11 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas // If there are no available builds, then they can't auto update. enableUpdateButton(isCompatible); + if (isCompatible) { + // If there is an update, save its URL and work out its name + updateUrl = release->getDownloadUrl(); + } + // Give the user the appropriate message if (!needToUpdate) { // If there's no need to update, tell them that. However we still allow them to run the @@ -137,9 +142,6 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas publishDate = release->getPublishDate().toString(Qt::DefaultLocaleLongDate); if (isCompatible) { - // If there is an update, save its URL and work out its name - updateUrl = release->getDownloadUrl(); - int reply; reply = QMessageBox::question( this, tr("Update Available"),