summaryrefslogtreecommitdiff
path: root/src/gui/registerdialog.cpp
diff options
context:
space:
mode:
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();
}