summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-03-24 22:38:25 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-03-24 22:38:25 +0000
commit0b5aa685bf50d03f63126fb261cde464a2bc28e4 (patch)
treeadd599cf210e06d6fb198f0c10bbbbcf7493858f /src/gui
parentb5a95c2e1151ce61a2615cffcbb6821c150f40fd (diff)
downloadmana-0b5aa685bf50d03f63126fb261cde464a2bc28e4.tar.gz
mana-0b5aa685bf50d03f63126fb261cde464a2bc28e4.tar.bz2
mana-0b5aa685bf50d03f63126fb261cde464a2bc28e4.tar.xz
mana-0b5aa685bf50d03f63126fb261cde464a2bc28e4.zip
Cancel button is now disabled after downloading is finished.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/updatewindow.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp
index b66bcfbd..8e105844 100644
--- a/src/gui/updatewindow.cpp
+++ b/src/gui/updatewindow.cpp
@@ -157,6 +157,7 @@ void UpdaterWindow::setLabel(const std::string &str)
void UpdaterWindow::enable()
{
+ mCancelButton->setEnabled(false);
mPlayButton->setEnabled(true);
mPlayButton->requestFocus();
}
@@ -168,11 +169,7 @@ void UpdaterWindow::action(const gcn::ActionEvent &event)
// Register the user cancel
mUserCancel = true;
// Skip the updating process
- if (mDownloadStatus == UPDATE_COMPLETE)
- {
- state = EXIT_STATE;
- }
- else
+ if (mDownloadStatus != UPDATE_COMPLETE)
{
mDownloadStatus = UPDATE_ERROR;
}