summaryrefslogtreecommitdiff
path: root/src/gui/windows/logindialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/logindialog.cpp')
-rw-r--r--src/gui/windows/logindialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp
index 7f36704cb..168b1b76a 100644
--- a/src/gui/windows/logindialog.cpp
+++ b/src/gui/windows/logindialog.cpp
@@ -74,10 +74,11 @@ LoginDialog::LoginDialog(LoginData &data,
mUserField(new TextField(this, mLoginData->username,
LoseFocusOnTab_true, nullptr, std::string(), false)),
mPassField(new PasswordField(this, mLoginData->password)),
- // TRANSLATORS: login dialog label
#ifdef SAVE_PASSWORD
+ // TRANSLATORS: login dialog label
mKeepCheck(new CheckBox(this, _("Remember user and password"),
#else
+ // TRANSLATORS: login dialog label
mKeepCheck(new CheckBox(this, _("Remember username"),
#endif
mLoginData->remember, nullptr, std::string())),
@@ -209,9 +210,8 @@ void LoginDialog::postInit()
#else
if (mUserField->getText().empty())
mUserField->requestFocus();
- else {
+ else
mPassField->requestFocus();
- }
#endif
mLoginButton->setEnabled(canSubmit());