From e873e33f470ef65375a64652bc4d4dbbb0297172 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Sep 2014 20:45:24 +0300 Subject: Add server feature haveOtherGender. --- src/gui/windows/registerdialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp index 6ac30634b..7253c3630 100644 --- a/src/gui/windows/registerdialog.cpp +++ b/src/gui/windows/registerdialog.cpp @@ -45,6 +45,7 @@ #include "net/loginhandler.h" #include "net/net.h" #include "net/registrationoptions.h" +#include "net/serverfeatures.h" #include "utils/delete2.h" #include "utils/gettext.h" @@ -100,7 +101,7 @@ RegisterDialog::RegisterDialog(LoginData *const data) : mMaleButton = new RadioButton(this, _("Male"), "sex", true); // TRANSLATORS: register dialog. button. mFemaleButton = new RadioButton(this, _("Female"), "sex", false); - if (serverVersion >= 5) + if (Net::getServerFeatures()->haveOtherGender()) { // TRANSLATORS: register dialog. button. mOtherButton = new RadioButton(this, _("Other"), "sex", false); -- cgit v1.2.3-60-g2f50