summaryrefslogtreecommitdiff
path: root/src/gui/login.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-19 11:52:27 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-19 11:52:27 +0000
commit19d5cc3a6bbbd911361b7e8b956840d0189d4c2b (patch)
tree5eb8b94f7832bdbb6d21c7ded6e6da6b5f8f3464 /src/gui/login.cpp
parent59399a274c694e9dc467149828b57f47794eeaeb (diff)
downloadmana-19d5cc3a6bbbd911361b7e8b956840d0189d4c2b.tar.gz
mana-19d5cc3a6bbbd911361b7e8b956840d0189d4c2b.tar.bz2
mana-19d5cc3a6bbbd911361b7e8b956840d0189d4c2b.tar.xz
mana-19d5cc3a6bbbd911361b7e8b956840d0189d4c2b.zip
Removed some duplicate initializations.
Diffstat (limited to 'src/gui/login.cpp')
-rw-r--r--src/gui/login.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/login.cpp b/src/gui/login.cpp
index ee648669..c0dd9245 100644
--- a/src/gui/login.cpp
+++ b/src/gui/login.cpp
@@ -63,7 +63,7 @@ LoginDialog::LoginDialog(LoginData *loginData):
mUserField = new TextField(mLoginData->username);
mPassField = new PasswordField(mLoginData->password);
mServerField = new TextField(mLoginData->hostname);
- mKeepCheck = new CheckBox("Keep", false);
+ mKeepCheck = new CheckBox("Keep", mLoginData->remember);
mOkButton = new Button("OK", "ok", this);
mCancelButton = new Button("Cancel", "cancel", this);
mRegisterButton = new Button("Register", "register", this);
@@ -82,7 +82,6 @@ LoginDialog::LoginDialog(LoginData *loginData):
mPassField->setWidth(130);
mServerField->setWidth(130);
mKeepCheck->setPosition(4, 77);
- mKeepCheck->setMarked(mLoginData->remember);
mCancelButton->setPosition(
200 - mCancelButton->getWidth() - 5,
100 - mCancelButton->getHeight() - 5);