summaryrefslogtreecommitdiff
path: root/src/gui/windows/logindialog.cpp
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/logindialog.cpp
parent767d987fb02051621ae087534b42ab956abdfc32 (diff)
downloadmanaverse-63fd641252dd035e51730fa2172f6faea0d5f756.tar.gz
manaverse-63fd641252dd035e51730fa2172f6faea0d5f756.tar.bz2
manaverse-63fd641252dd035e51730fa2172f6faea0d5f756.tar.xz
manaverse-63fd641252dd035e51730fa2172f6faea0d5f756.zip
switch: change default input mapping in inputactionmap.h
Diffstat (limited to 'src/gui/windows/logindialog.cpp')
-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)