diff options
author | cpasjuste <cpasjuste@gmail.com> | 2020-04-29 11:17:12 +0200 |
---|---|---|
committer | cpasjuste <cpasjuste@gmail.com> | 2020-04-29 11:17:12 +0200 |
commit | 63fd641252dd035e51730fa2172f6faea0d5f756 (patch) | |
tree | 1cfcfd1b607b2e3c070162cb222ab0bed16d56f0 /src/gui/windows | |
parent | 767d987fb02051621ae087534b42ab956abdfc32 (diff) | |
download | plus-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.cpp | 7 |
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) |