From 63fd641252dd035e51730fa2172f6faea0d5f756 Mon Sep 17 00:00:00 2001 From: cpasjuste Date: Wed, 29 Apr 2020 11:17:12 +0200 Subject: switch: change default input mapping in inputactionmap.h --- src/gui/windows/logindialog.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui') diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp index f169635dc..7f36704cb 100644 --- a/src/gui/windows/logindialog.cpp +++ b/src/gui/windows/logindialog.cpp @@ -204,14 +204,15 @@ void LoginDialog::postInit() loadWindowState(); reflowLayout(0, 0); +#ifdef SAVE_PASSWORD + mPassField->setText(LoginDialog::savedPassword); +#else if (mUserField->getText().empty()) mUserField->requestFocus(); else { -#ifdef SAVE_PASSWORD - mPassField->setText(LoginDialog::savedPassword); -#endif mPassField->requestFocus(); } +#endif mLoginButton->setEnabled(canSubmit()); if (loginHandler != nullptr) -- cgit v1.2.3-70-g09d2