Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
5fcd8a73
Commit
5fcd8a73
authored
Jan 28, 2016
by
ctrlaltca
Browse files
Merge pull request #1776 from ctrlaltca/button_fix
Updater: Disable download button when download starts
parents
5577d618
ee42d547
Changes
1
Show whitespace changes
Inline
Side-by-side
cockatrice/src/dlg_update.cpp
View file @
5fcd8a73
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment