summaryrefslogtreecommitdiff
path: root/src/gui/logindialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-20 01:45:57 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:43 +0300
commitf5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8 (patch)
tree8ab383dce47ed689137addbac041ef1f9e300faf /src/gui/logindialog.cpp
parent5d02ab43ff6d3e328a3b02479c033609023edec2 (diff)
downloadmanaplus-f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8.tar.gz
manaplus-f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8.tar.bz2
manaplus-f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8.tar.xz
manaplus-f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8.zip
Add palette inheritance to textfield class.
Diffstat (limited to 'src/gui/logindialog.cpp')
-rw-r--r--src/gui/logindialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp
index a1db2a953..b16082485 100644
--- a/src/gui/logindialog.cpp
+++ b/src/gui/logindialog.cpp
@@ -120,8 +120,8 @@ LoginDialog::LoginDialog(LoginData *const data, std::string serverName,
gcn::ActionListener(),
gcn::KeyListener(),
mLoginData(data),
- mUserField(new TextField(mLoginData->username)),
- mPassField(new PasswordField(mLoginData->password)),
+ mUserField(new TextField(this, mLoginData->username)),
+ mPassField(new PasswordField(this, mLoginData->password)),
mKeepCheck(new CheckBox(this, _("Remember username"),
mLoginData->remember)),
mUpdateTypeLabel(new Label(_("Update:"))),
@@ -133,7 +133,7 @@ LoginDialog::LoginDialog(LoginData *const data, std::string serverName,
mRegisterButton(new Button(this, _("Register"), "register", this)),
mCustomUpdateHost(new CheckBox(this, _("Custom update host"),
mLoginData->updateType & LoginData::Upd_Custom, this, "customhost")),
- mUpdateHostText(new TextField(serverConfig.getValue(
+ mUpdateHostText(new TextField(this, serverConfig.getValue(
"customUpdateHost", ""))),
mUpdateListModel(nullptr),
mUpdateHostDropDown(nullptr),