summaryrefslogtreecommitdiff
path: root/src/gui/register.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-03-24 01:57:39 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-03-24 01:57:39 +0000
commitd5e8513e085b6fc8da2ea4bb7151ac8e98be74c8 (patch)
tree0990fc8565e99c321344283139eb419829769d7a /src/gui/register.cpp
parenta34741f590ed24c2a6e0c0ebbde832572c606b94 (diff)
downloadmana-d5e8513e085b6fc8da2ea4bb7151ac8e98be74c8.tar.gz
mana-d5e8513e085b6fc8da2ea4bb7151ac8e98be74c8.tar.bz2
mana-d5e8513e085b6fc8da2ea4bb7151ac8e98be74c8.tar.xz
mana-d5e8513e085b6fc8da2ea4bb7151ac8e98be74c8.zip
Go back to login or register state on error, depending on what the user was
doing, and fixed the error message when registering an account that already exists. Also another crash fix following from previous commit.
Diffstat (limited to 'src/gui/register.cpp')
-rw-r--r--src/gui/register.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/register.cpp b/src/gui/register.cpp
index 4a8a32d9..ad3a6388 100644
--- a/src/gui/register.cpp
+++ b/src/gui/register.cpp
@@ -224,9 +224,8 @@ RegisterDialog::action(const gcn::ActionEvent &event)
// No errors detected, register the new user.
mRegisterButton->setEnabled(false);
- mLoginData->hostname = config.getValue(
- "host", "server.themanaworld.org");
- mLoginData->port = (short)config.getValue("port", 0);
+ mLoginData->hostname = mServerField->getText();
+ mLoginData->port = (short) config.getValue("port", 0);
mLoginData->username = mUserField->getText();
mLoginData->password = mPasswordField->getText();
mLoginData->username += mFemaleButton->isMarked() ? "_F" : "_M";