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
ee42d547
Commit
ee42d547
authored
Jan 28, 2016
by
Fabio Bas
Browse files
Disable downlod button when download starts
parent
5577d618
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/dlg_update.cpp
View file @
ee42d547
...
...
@@ -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