summaryrefslogtreecommitdiff
path: root/src/gui/unregisterdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/unregisterdialog.cpp')
-rw-r--r--src/gui/unregisterdialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/unregisterdialog.cpp b/src/gui/unregisterdialog.cpp
index 86243363f..49db5175c 100644
--- a/src/gui/unregisterdialog.cpp
+++ b/src/gui/unregisterdialog.cpp
@@ -95,11 +95,12 @@ UnRegisterDialog::~UnRegisterDialog()
void UnRegisterDialog::action(const gcn::ActionEvent &event)
{
- if (event.getId() == "cancel")
+ const std::string &eventId = event.getId();
+ if (eventId == "cancel")
{
Client::setState(STATE_CHAR_SELECT);
}
- else if (event.getId() == "unregister")
+ else if (eventId == "unregister")
{
const std::string username = mLoginData->username.c_str();
const std::string password = mPasswordField->getText();