diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-01 18:02:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-01 18:02:17 +0300 |
commit | bfa0ffd5db38174555992c4a21274be41aad753f (patch) | |
tree | 8fc6464790470b62d2f21cedbed2cf9e732d8d70 /src/gui/windows/registerdialog.cpp | |
parent | 87918db755040bb693cb286d8fb0bcfd97d761af (diff) | |
download | manaverse-bfa0ffd5db38174555992c4a21274be41aad753f.tar.gz manaverse-bfa0ffd5db38174555992c4a21274be41aad753f.tar.bz2 manaverse-bfa0ffd5db38174555992c4a21274be41aad753f.tar.xz manaverse-bfa0ffd5db38174555992c4a21274be41aad753f.zip |
Remove ServerFeatures haveAccountOtherGender because it always false.
Diffstat (limited to 'src/gui/windows/registerdialog.cpp')
-rw-r--r-- | src/gui/windows/registerdialog.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp index 79884b92c..c1940eb8d 100644 --- a/src/gui/windows/registerdialog.cpp +++ b/src/gui/windows/registerdialog.cpp @@ -64,7 +64,6 @@ RegisterDialog::RegisterDialog(LoginData &data) : mCancelButton(new Button(this, _("Cancel"), "cancel", this)), mMaleButton(nullptr), mFemaleButton(nullptr), - mOtherButton(nullptr), mWrongDataNoticeListener(new WrongDataNoticeListener) { setCloseButton(true); @@ -94,19 +93,8 @@ RegisterDialog::RegisterDialog(LoginData &data) : mMaleButton = new RadioButton(this, _("Male"), "sex", true); // TRANSLATORS: register dialog. button. mFemaleButton = new RadioButton(this, _("Female"), "sex", false); - if (serverFeatures->haveAccountOtherGender()) - { - // TRANSLATORS: register dialog. button. - mOtherButton = new RadioButton(this, _("Other"), "sex", false); - placer(0, row, mMaleButton); - placer(1, row, mFemaleButton); - placer(2, row, mOtherButton); - } - else - { - placer(1, row, mMaleButton); - placer(2, row, mFemaleButton); - } + placer(1, row, mMaleButton); + placer(2, row, mFemaleButton); row++; } @@ -271,8 +259,6 @@ void RegisterDialog::action(const ActionEvent &event) { if (mFemaleButton && mFemaleButton->isSelected()) mLoginData->gender = Gender::FEMALE; - else if (mOtherButton && mOtherButton->isSelected()) - mLoginData->gender = Gender::OTHER; else mLoginData->gender = Gender::MALE; } |