summaryrefslogtreecommitdiff
path: root/src/gui/windows/charselectdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-13 23:01:53 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-13 23:02:53 +0300
commitcd7e273322d9648be6c005fd2930a6037149a357 (patch)
treeda429361f7c1ddc5e3c4500684a4b25dee36406b /src/gui/windows/charselectdialog.cpp
parent3f87e3c0f191d72c3295955736a057430b3ab661 (diff)
downloadmanaverse-cd7e273322d9648be6c005fd2930a6037149a357.tar.gz
manaverse-cd7e273322d9648be6c005fd2930a6037149a357.tar.bz2
manaverse-cd7e273322d9648be6c005fd2930a6037149a357.tar.xz
manaverse-cd7e273322d9648be6c005fd2930a6037149a357.zip
Remove manaserv related RegistrationOptions.
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r--src/gui/windows/charselectdialog.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp
index 476cd50b9..65d7d19f6 100644
--- a/src/gui/windows/charselectdialog.cpp
+++ b/src/gui/windows/charselectdialog.cpp
@@ -49,7 +49,6 @@
#include "net/charserverhandler.h"
#include "net/logindata.h"
#include "net/loginhandler.h"
-#include "net/registrationoptions.h"
#include "net/serverfeatures.h"
#include "debug.h"
@@ -72,8 +71,6 @@ CharSelectDialog::CharSelectDialog(LoginData &data) :
// TRANSLATORS: char select dialog. button.
mChangePasswordButton(new Button(this, _("Password"),
"change_password", this)),
- mUnregisterButton(nullptr),
- mChangeEmailButton(nullptr),
// TRANSLATORS: char select dialog. button.
mPlayButton(new Button(this, _("Play"), "use", this)),
// TRANSLATORS: char select dialog. button.
@@ -94,35 +91,14 @@ CharSelectDialog::CharSelectDialog(LoginData &data) :
setCloseButton(true);
setFocusable(true);
- const int optionalActions = loginHandler->supportedOptionalActions();
-
ContainerPlacer placer;
placer = getPlacer(0, 0);
placer(0, 0, mSwitchLoginButton);
int n = 1;
- if (optionalActions & Net::RegistrationOptions::Unregister)
- {
- // TRANSLATORS: char select dialog. button.
- mUnregisterButton = new Button(this, _("Unregister"),
- "unregister", this);
- placer(n, 0, mUnregisterButton);
- n ++;
- }
-
placer(n, 0, mChangePasswordButton);
n ++;
-
- if (optionalActions & Net::RegistrationOptions::ChangeEmail)
- {
- // TRANSLATORS: char select dialog. button.
- mChangeEmailButton = new Button(this, _("Change Email"),
- "change_email", this);
- placer(n, 0, mChangeEmailButton);
- n ++;
- }
-
placer(n, 0, mDeleteButton);
n ++;
if (serverFeatures->haveCharRename())
@@ -555,10 +531,6 @@ void CharSelectDialog::setLocked(const bool locked)
mSwitchLoginButton->setEnabled(!locked);
if (mChangePasswordButton)
mChangePasswordButton->setEnabled(!locked);
- if (mUnregisterButton)
- mUnregisterButton->setEnabled(!locked);
- if (mChangeEmailButton)
- mChangeEmailButton->setEnabled(!locked);
mPlayButton->setEnabled(!locked);
if (mDeleteButton)
mDeleteButton->setEnabled(!locked);