Merge pull request #1776 from ctrlaltca/button_fix
Updater: Disable download button when download starts
This commit is contained in:
commit
5fcd8a73ff
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue