summaryrefslogtreecommitdiff
path: root/src/gui/serverdialog.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/serverdialog.cpp
parente8a4474319aca4a32869fa1ebb8b5ebbd98237f6 (diff)
downloadmv-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.gz
mv-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.bz2
mv-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.xz
mv-c2a7004213529c403faeb6fdcc374699aa2f53b5.zip
improve getState/setState in Client.
Diffstat (limited to 'src/gui/serverdialog.cpp')
-rw-r--r--src/gui/serverdialog.cpp8
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();
}