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/charselectdialog.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/charselectdialog.cpp')
-rw-r--r-- | src/gui/charselectdialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/charselectdialog.cpp b/src/gui/charselectdialog.cpp index 8daf1e279..92f1aeba8 100644 --- a/src/gui/charselectdialog.cpp +++ b/src/gui/charselectdialog.cpp @@ -266,16 +266,16 @@ void CharSelectDialog::action(const gcn::ActionEvent &event) } else if (eventId == "change_password") { - Client::setState(STATE_CHANGEPASSWORD); + client->setState(STATE_CHANGEPASSWORD); } else if (eventId == "change_email") { - Client::setState(STATE_CHANGEEMAIL); + client->setState(STATE_CHANGEEMAIL); } else if (eventId == "unregister") { Net::getCharServerHandler()->clear(); - Client::setState(STATE_UNREGISTER); + client->setState(STATE_UNREGISTER); } else if (eventId == "try delete character") { @@ -552,7 +552,7 @@ bool CharSelectDialog::selectByName(const std::string &name, void CharSelectDialog::close() { - Client::setState(STATE_SWITCH_LOGIN); + client->setState(STATE_SWITCH_LOGIN); Window::close(); } |