summaryrefslogtreecommitdiff
path: root/src/gui/registerdialog.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/registerdialog.cpp
parente8a4474319aca4a32869fa1ebb8b5ebbd98237f6 (diff)
downloadplus-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.gz
plus-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.bz2
plus-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.xz
plus-c2a7004213529c403faeb6fdcc374699aa2f53b5.zip
improve getState/setState in Client.
Diffstat (limited to 'src/gui/registerdialog.cpp')
-rw-r--r--src/gui/registerdialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/registerdialog.cpp b/src/gui/registerdialog.cpp
index a4de48807..233bf9bf9 100644
--- a/src/gui/registerdialog.cpp
+++ b/src/gui/registerdialog.cpp
@@ -274,7 +274,7 @@ void RegisterDialog::action(const gcn::ActionEvent &event)
mLoginData->email = mEmailField->getText();
mLoginData->registerLogin = true;
- Client::setState(STATE_REGISTER_ATTEMPT);
+ client->setState(STATE_REGISTER_ATTEMPT);
}
}
}
@@ -308,11 +308,11 @@ bool RegisterDialog::canSubmit() const
return !mUserField->getText().empty() &&
!mPasswordField->getText().empty() &&
!mConfirmField->getText().empty() &&
- Client::getState() == STATE_REGISTER;
+ client->getState() == STATE_REGISTER;
}
void RegisterDialog::close()
{
- Client::setState(STATE_LOGIN);
+ client->setState(STATE_LOGIN);
Window::close();
}