summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorcpasjuste <cpasjuste@gmail.com>2020-04-29 11:17:12 +0200
committercpasjuste <cpasjuste@gmail.com>2020-04-29 11:17:12 +0200
commit63fd641252dd035e51730fa2172f6faea0d5f756 (patch)
tree1cfcfd1b607b2e3c070162cb222ab0bed16d56f0 /src/gui/windows
parent767d987fb02051621ae087534b42ab956abdfc32 (diff)
downloadplus-63fd641252dd035e51730fa2172f6faea0d5f756.tar.gz
plus-63fd641252dd035e51730fa2172f6faea0d5f756.tar.bz2
plus-63fd641252dd035e51730fa2172f6faea0d5f756.tar.xz
plus-63fd641252dd035e51730fa2172f6faea0d5f756.zip
switch: change default input mapping in inputactionmap.h
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/logindialog.cpp7
1 files changed, 4 insertions, 3 deletions
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)