diff options
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/charselectdialog.cpp | 5 | ||||
-rw-r--r-- | src/gui/windows/registerdialog.cpp | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp index 8dccde964..167bd37f1 100644 --- a/src/gui/windows/charselectdialog.cpp +++ b/src/gui/windows/charselectdialog.cpp @@ -48,6 +48,7 @@ #include "net/logindata.h" #include "net/loginhandler.h" #include "net/net.h" +#include "net/registrationoptions.h" #include "debug.h" @@ -96,7 +97,7 @@ CharSelectDialog::CharSelectDialog(LoginData *const data): placer(0, 0, mSwitchLoginButton); int n = 1; - if (optionalActions & Net::LoginHandler::Unregister) + if (optionalActions & Net::RegistrationOptions::Unregister) { // TRANSLATORS: char select dialog. button. mUnregisterButton = new Button(this, _("Unregister"), @@ -108,7 +109,7 @@ CharSelectDialog::CharSelectDialog(LoginData *const data): placer(n, 0, mChangePasswordButton); n ++; - if (optionalActions & Net::LoginHandler::ChangeEmail) + if (optionalActions & Net::RegistrationOptions::ChangeEmail) { // TRANSLATORS: char select dialog. button. mChangeEmailButton = new Button(this, _("Change Email"), diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp index b396f591f..edcac1bda 100644 --- a/src/gui/windows/registerdialog.cpp +++ b/src/gui/windows/registerdialog.cpp @@ -42,6 +42,7 @@ #include "net/logindata.h" #include "net/loginhandler.h" #include "net/net.h" +#include "net/registrationoptions.h" #include "utils/delete2.h" #include "utils/gettext.h" @@ -91,7 +92,7 @@ RegisterDialog::RegisterDialog(LoginData *const data) : int row = 3; - if (optionalActions & Net::LoginHandler::SetGenderOnRegister) + if (optionalActions & Net::RegistrationOptions::SetGenderOnRegister) { // TRANSLATORS: register dialog. button. mMaleButton = new RadioButton(this, _("Male"), "sex", true); @@ -114,7 +115,7 @@ RegisterDialog::RegisterDialog(LoginData *const data) : row++; } - if (optionalActions & Net::LoginHandler::SetEmailOnRegister) + if (optionalActions & Net::RegistrationOptions::SetEmailOnRegister) { // TRANSLATORS: register dialog. label. Label *const emailLabel = new Label(this, _("Email:")); |