diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-13 23:01:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-13 23:02:53 +0300 |
commit | cd7e273322d9648be6c005fd2930a6037149a357 (patch) | |
tree | da429361f7c1ddc5e3c4500684a4b25dee36406b /src/gui/windows/registerdialog.cpp | |
parent | 3f87e3c0f191d72c3295955736a057430b3ab661 (diff) | |
download | manaverse-cd7e273322d9648be6c005fd2930a6037149a357.tar.gz manaverse-cd7e273322d9648be6c005fd2930a6037149a357.tar.bz2 manaverse-cd7e273322d9648be6c005fd2930a6037149a357.tar.xz manaverse-cd7e273322d9648be6c005fd2930a6037149a357.zip |
Remove manaserv related RegistrationOptions.
Diffstat (limited to 'src/gui/windows/registerdialog.cpp')
-rw-r--r-- | src/gui/windows/registerdialog.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp index 06a47c6b5..d3deaeb5e 100644 --- a/src/gui/windows/registerdialog.cpp +++ b/src/gui/windows/registerdialog.cpp @@ -38,7 +38,6 @@ #include "net/logindata.h" #include "net/loginhandler.h" -#include "net/registrationoptions.h" #include "net/serverfeatures.h" #include "utils/delete2.h" @@ -67,9 +66,6 @@ RegisterDialog::RegisterDialog(LoginData &data) : { setCloseButton(true); - const int optionalActions = loginHandler-> - supportedOptionalActions(); - // TRANSLATORS: register dialog. label. Label *const userLabel = new Label(this, _("Name:")); // TRANSLATORS: register dialog. label. @@ -89,7 +85,8 @@ RegisterDialog::RegisterDialog(LoginData &data) : int row = 3; - if (optionalActions & Net::RegistrationOptions::SetGenderOnRegister) + // for future usage flag + if (true) { // TRANSLATORS: register dialog. button. mMaleButton = new RadioButton(this, _("Male"), "sex", true); @@ -112,7 +109,7 @@ RegisterDialog::RegisterDialog(LoginData &data) : row++; } - if (optionalActions & Net::RegistrationOptions::SetEmailOnRegister) + if (serverFeatures->haveEmailOnRegister()) { // TRANSLATORS: register dialog. label. Label *const emailLabel = new Label(this, _("Email:")); |