summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/chatwindow.cpp5
-rw-r--r--src/gui/windows/logindialog.cpp6
2 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index 759764e48..7fc059f5c 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -823,11 +823,12 @@ void ChatWindow::keyPressed(KeyEvent &event)
const InputActionT actionId = event.getActionId();
std::string temp;
#ifdef __SWITCH__
- if(event.getKey().getValue() == KeyValue::TEXTINPUT)
+ if (event.getKey().getValue() == KeyValue::TEXTINPUT)
{
action(ActionEvent(this, "chatinput"));
return;
- } else
+ }
+ else
#endif
if (actionId == InputAction::GUI_DOWN)
{
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());