summaryrefslogtreecommitdiff
path: root/src/gui/updatewindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/updatewindow.cpp')
-rw-r--r--src/gui/updatewindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp
index 73e4489e..d41dfe13 100644
--- a/src/gui/updatewindow.cpp
+++ b/src/gui/updatewindow.cpp
@@ -132,9 +132,9 @@ void UpdaterWindow::enable()
mPlayButton->requestFocus();
}
-void UpdaterWindow::action(const std::string &eventId, gcn::Widget *widget)
+void UpdaterWindow::action(const gcn::ActionEvent &event)
{
- if (eventId == "cancel")
+ if (event.getId() == "cancel")
{
// Register the user cancel
mUserCancel=true;
@@ -148,7 +148,7 @@ void UpdaterWindow::action(const std::string &eventId, gcn::Widget *widget)
mDownloadStatus = UPDATE_ERROR;
}
}
- else if (eventId == "play")
+ else if (event.getId() == "play")
{
state = STATE_LOGIN;
}