summaryrefslogtreecommitdiff
path: root/src/gui/charselectdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-23 22:00:27 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:16 +0300
commitc2a7004213529c403faeb6fdcc374699aa2f53b5 (patch)
treef5701ef3412923bc0e5e033033bd52960d66acc3 /src/gui/charselectdialog.cpp
parente8a4474319aca4a32869fa1ebb8b5ebbd98237f6 (diff)
downloadManaVerse-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.cpp8
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();
}