summaryrefslogtreecommitdiff
path: root/src/gui/register.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-10 19:06:52 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-10 19:07:54 +0200
commite48060430f9fae5c52fb32009a3e10e35e1817a2 (patch)
tree8b9baa86dac7545d17dbc5a8ffe542782e05cdf4 /src/gui/register.cpp
parent33afe8f744587b9a8da67e85298bb2e1c28d083d (diff)
downloadmana-client-e48060430f9fae5c52fb32009a3e10e35e1817a2.tar.gz
mana-client-e48060430f9fae5c52fb32009a3e10e35e1817a2.tar.bz2
mana-client-e48060430f9fae5c52fb32009a3e10e35e1817a2.tar.xz
mana-client-e48060430f9fae5c52fb32009a3e10e35e1817a2.zip
Revived the email field to fix registration crash
Now you can register new accounts on tmwserv again. The email field apparently gots lost during the merge somewhere.
Diffstat (limited to 'src/gui/register.cpp')
-rw-r--r--src/gui/register.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/register.cpp b/src/gui/register.cpp
index 6700bca6..8442c3ea 100644
--- a/src/gui/register.cpp
+++ b/src/gui/register.cpp
@@ -63,6 +63,8 @@ RegisterDialog::RegisterDialog(LoginData *loginData):
#ifdef EATHENA_SUPPORT
gcn::Label *serverLabel = new Label(_("Server:"));
gcn::Label *portLabel = new Label(_("Port:"));
+#else
+ gcn::Label *emailLabel = new Label(_("Email:"));
#endif
mUserField = new TextField(loginData->username);
mPasswordField = new PasswordField(loginData->password);
@@ -72,6 +74,8 @@ RegisterDialog::RegisterDialog(LoginData *loginData):
mPortField = new TextField(toString(loginData->port));
mMaleButton = new RadioButton(_("Male"), "sex", true);
mFemaleButton = new RadioButton(_("Female"), "sex", false);
+#else
+ mEmailField = new TextField;
#endif
mRegisterButton = new Button(_("Register"), "register", this);
mCancelButton = new Button(_("Cancel"), "cancel", this);
@@ -86,6 +90,8 @@ RegisterDialog::RegisterDialog(LoginData *loginData):
place(2, 3, mFemaleButton);
place(0, 4, serverLabel);
place(0, 5, portLabel);
+#else
+ place(0, 3, emailLabel);
#endif
place(1, 0, mUserField, 3).setPadding(2);
place(1, 1, mPasswordField, 3).setPadding(2);
@@ -93,6 +99,8 @@ RegisterDialog::RegisterDialog(LoginData *loginData):
#ifdef EATHENA_SUPPORT
place(1, 4, mServerField, 3).setPadding(2);
place(1, 5, mPortField, 3).setPadding(2);
+#else
+ place(1, 3, mEmailField, 3).setPadding(2);
#endif
place = getPlacer(0, 2);
place(1, 0, mRegisterButton);