From ee42d547bfda69eec1e59778132ed6cb2b7e738e Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Thu, 28 Jan 2016 22:27:14 +0100 Subject: [PATCH] Disable downlod button when download starts --- cockatrice/src/dlg_update.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cockatrice/src/dlg_update.cpp b/cockatrice/src/dlg_update.cpp index f96ebe8d..daf419fc 100644 --- a/cockatrice/src/dlg_update.cpp +++ b/cockatrice/src/dlg_update.cpp @@ -85,6 +85,7 @@ void DlgUpdate::gotoDownloadPage() { void DlgUpdate::downloadUpdate() { setLabel("Downloading update..."); + enableUpdateButton(false); uDownloader->beginDownload(updateUrl); } @@ -156,6 +157,7 @@ void DlgUpdate::updateCheckError(QString errorString) { void DlgUpdate::downloadError(QString errorString) { setLabel("Error"); + enableUpdateButton(true); QMessageBox::critical(this, tr("Update Error"), "An error occurred while downloading an update: " + errorString); }