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/serverdialog.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/serverdialog.cpp')
-rw-r--r-- | src/gui/serverdialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp index 14f97576a..12ac7420a 100644 --- a/src/gui/serverdialog.cpp +++ b/src/gui/serverdialog.cpp @@ -363,7 +363,7 @@ ServerDialog::~ServerDialog() void ServerDialog::connectToSelectedServer() { - if (Client::getState() == STATE_CONNECT_SERVER) + if (client->getState() == STATE_CONNECT_SERVER) return; const int index = mServersList->getSelected(); @@ -402,7 +402,7 @@ void ServerDialog::connectToSelectedServer() config.setValue("usePersistentIP", mPersistentIPCheckBox->isSelected()); - Client::setState(STATE_CONNECT_SERVER); + client->setState(STATE_CONNECT_SERVER); } void ServerDialog::action(const gcn::ActionEvent &event) @@ -448,7 +448,7 @@ void ServerDialog::keyPressed(gcn::KeyEvent &keyEvent) { case Input::KEY_GUI_CANCEL: keyEvent.consume(); - Client::setState(STATE_EXIT); + client->setState(STATE_EXIT); return; case Input::KEY_GUI_SELECT: @@ -869,6 +869,6 @@ void ServerDialog::close() { if (mDownload) mDownload->cancel(); - Client::setState(STATE_FORCE_QUIT); + client->setState(STATE_FORCE_QUIT); Window::close(); } |