summaryrefslogtreecommitdiff
path: root/src/gui/windows/registerdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-20 18:04:19 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-20 18:04:19 +0300
commitd4b88a7ebce6222c34928c49925f972515593e89 (patch)
treeab3c8136bcc06ec84194738c83bef8af6df62752 /src/gui/windows/registerdialog.cpp
parent6bf4a5aa68afb7d95632880c001286f2a721e1f5 (diff)
downloadplus-d4b88a7ebce6222c34928c49925f972515593e89.tar.gz
plus-d4b88a7ebce6222c34928c49925f972515593e89.tar.bz2
plus-d4b88a7ebce6222c34928c49925f972515593e89.tar.xz
plus-d4b88a7ebce6222c34928c49925f972515593e89.zip
Move registrationoptions into separate file.
Diffstat (limited to 'src/gui/windows/registerdialog.cpp')
-rw-r--r--src/gui/windows/registerdialog.cpp5
1 files changed, 3 insertions, 2 deletions
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:"));