diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-23 22:00:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:16 +0300 |
commit | c2a7004213529c403faeb6fdcc374699aa2f53b5 (patch) | |
tree | f5701ef3412923bc0e5e033033bd52960d66acc3 /src/gui/changeemaildialog.cpp | |
parent | e8a4474319aca4a32869fa1ebb8b5ebbd98237f6 (diff) | |
download | manaverse-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.gz manaverse-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.bz2 manaverse-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.xz manaverse-c2a7004213529c403faeb6fdcc374699aa2f53b5.zip |
improve getState/setState in Client.
Diffstat (limited to 'src/gui/changeemaildialog.cpp')
-rw-r--r-- | src/gui/changeemaildialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/changeemaildialog.cpp b/src/gui/changeemaildialog.cpp index 3840dece3..3cf519336 100644 --- a/src/gui/changeemaildialog.cpp +++ b/src/gui/changeemaildialog.cpp @@ -115,7 +115,7 @@ void ChangeEmailDialog::action(const gcn::ActionEvent &event) const std::string &eventId = event.getId(); if (eventId == "cancel") { - Client::setState(STATE_CHAR_SELECT); + client->setState(STATE_CHAR_SELECT); } else if (eventId == "change_email") { @@ -175,7 +175,7 @@ void ChangeEmailDialog::action(const gcn::ActionEvent &event) mChangeEmailButton->setEnabled(false); // Set the new email address mLoginData->email = newFirstEmail; - Client::setState(STATE_CHANGEEMAIL_ATTEMPT); + client->setState(STATE_CHANGEEMAIL_ATTEMPT); } } } |