summaryrefslogtreecommitdiff
path: root/src/gui/logindialog.cpp
diff options
context:
space:
mode:
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", ""))),