summaryrefslogtreecommitdiff
path: root/src/gui/logindialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-20 01:00:19 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:43 +0300
commit79b4bbbe0ead006bec273c247eaa50c2fd585863 (patch)
tree4e4515e5623b74ae3de48fd6f5dac2b7c2a493d5 /src/gui/logindialog.cpp
parent41adf71a823f475b7f12b00e06056b778311da84 (diff)
downloadmanaverse-79b4bbbe0ead006bec273c247eaa50c2fd585863.tar.gz
manaverse-79b4bbbe0ead006bec273c247eaa50c2fd585863.tar.bz2
manaverse-79b4bbbe0ead006bec273c247eaa50c2fd585863.tar.xz
manaverse-79b4bbbe0ead006bec273c247eaa50c2fd585863.zip
Add palette inheritance to checkbox class.
Diffstat (limited to 'src/gui/logindialog.cpp')
-rw-r--r--src/gui/logindialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp
index d4affa6c7..a1db2a953 100644
--- a/src/gui/logindialog.cpp
+++ b/src/gui/logindialog.cpp
@@ -122,7 +122,8 @@ LoginDialog::LoginDialog(LoginData *const data, std::string serverName,
mLoginData(data),
mUserField(new TextField(mLoginData->username)),
mPassField(new PasswordField(mLoginData->password)),
- mKeepCheck(new CheckBox(_("Remember username"), mLoginData->remember)),
+ mKeepCheck(new CheckBox(this, _("Remember username"),
+ mLoginData->remember)),
mUpdateTypeLabel(new Label(_("Update:"))),
mUpdateHostLabel(nullptr),
mUpdateTypeModel(new UpdateTypeModel()),
@@ -130,7 +131,7 @@ LoginDialog::LoginDialog(LoginData *const data, std::string serverName,
mServerButton(new Button(this, _("Change Server"), "server", this)),
mLoginButton(new Button(this, _("Login"), "login", this)),
mRegisterButton(new Button(this, _("Register"), "register", this)),
- mCustomUpdateHost(new CheckBox(_("Custom update host"),
+ mCustomUpdateHost(new CheckBox(this, _("Custom update host"),
mLoginData->updateType & LoginData::Upd_Custom, this, "customhost")),
mUpdateHostText(new TextField(serverConfig.getValue(
"customUpdateHost", ""))),