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/logindialog.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/logindialog.cpp')
-rw-r--r-- | src/gui/logindialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp index 458cb15cd..701981008 100644 --- a/src/gui/logindialog.cpp +++ b/src/gui/logindialog.cpp @@ -276,7 +276,7 @@ void LoginDialog::action(const gcn::ActionEvent &event) { prepareUpdate(); mLoginData->registerLogin = false; - Client::setState(STATE_LOGIN_ATTEMPT); + client->setState(STATE_LOGIN_ATTEMPT); } else if (eventId == "server") { @@ -287,7 +287,7 @@ void LoginDialog::action(const gcn::ActionEvent &event) if (Net::getLoginHandler()->isRegistrationEnabled()) { prepareUpdate(); - Client::setState(STATE_REGISTER_PREP); + client->setState(STATE_REGISTER_PREP); } else if (!mLoginData->registerUrl.empty()) { @@ -339,7 +339,7 @@ bool LoginDialog::canSubmit() const { return !mUserField->getText().empty() && !mPassField->getText().empty() && - Client::getState() == STATE_LOGIN; + client->getState() == STATE_LOGIN; } void LoginDialog::prepareUpdate() @@ -408,6 +408,6 @@ void LoginDialog::prepareUpdate() void LoginDialog::close() { - Client::setState(STATE_SWITCH_SERVER); + client->setState(STATE_SWITCH_SERVER); Window::close(); } |