summaryrefslogtreecommitdiff
path: root/src/gui/windows/registerdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-17 11:03:22 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-17 11:03:22 +0300
commitdfaae6f6e804e7779ade870a211a1a14d3a5d9aa (patch)
treea7652f4e548e166b39a8203e27c890c02c62d5ca /src/gui/windows/registerdialog.cpp
parentfd050698f74b5dc7a9867bc93ba6b7c65ef2462f (diff)
downloadplus-dfaae6f6e804e7779ade870a211a1a14d3a5d9aa.tar.gz
plus-dfaae6f6e804e7779ade870a211a1a14d3a5d9aa.tar.bz2
plus-dfaae6f6e804e7779ade870a211a1a14d3a5d9aa.tar.xz
plus-dfaae6f6e804e7779ade870a211a1a14d3a5d9aa.zip
Remove getter for loginHandler.
Diffstat (limited to 'src/gui/windows/registerdialog.cpp')
-rw-r--r--src/gui/windows/registerdialog.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp
index 7253c3630..5701395a7 100644
--- a/src/gui/windows/registerdialog.cpp
+++ b/src/gui/windows/registerdialog.cpp
@@ -73,7 +73,7 @@ RegisterDialog::RegisterDialog(LoginData *const data) :
{
setCloseButton(true);
- const int optionalActions = Net::getLoginHandler()->
+ const int optionalActions = loginHandler->
supportedOptionalActions();
// TRANSLATORS: register dialog. label.
@@ -178,14 +178,10 @@ void RegisterDialog::action(const ActionEvent &event)
std::string errorMsg;
int error = 0;
- const unsigned int minUser = Net::getLoginHandler()
- ->getMinUserNameLength();
- const unsigned int maxUser = Net::getLoginHandler()
- ->getMaxUserNameLength();
- const unsigned int minPass = Net::getLoginHandler()
- ->getMinPasswordLength();
- const unsigned int maxPass = Net::getLoginHandler()
- ->getMaxPasswordLength();
+ const unsigned int minUser = loginHandler->getMinUserNameLength();
+ const unsigned int maxUser = loginHandler->getMaxUserNameLength();
+ const unsigned int minPass = loginHandler->getMinPasswordLength();
+ const unsigned int maxPass = loginHandler->getMaxPasswordLength();
if (user.length() < minUser)
{