summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2020-02-06 14:16:18 +0100
committerJonathan Bauer2020-02-06 14:16:18 +0100
commit5b0873a2e6af90565e5a4df4f12ddd1a7b10face (patch)
treee6750adcbe14d173fb40518f8c07c2650afc67d2
parentMake password placeholder configurable (diff)
downloadslxgreeter-5b0873a2e6af90565e5a4df4f12ddd1a7b10face.tar.gz
slxgreeter-5b0873a2e6af90565e5a4df4f12ddd1a7b10face.tar.xz
slxgreeter-5b0873a2e6af90565e5a4df4f12ddd1a7b10face.zip
loginform.cpp: set focus on username field on resetv26
-rw-r--r--src/loginform.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/loginform.cpp b/src/loginform.cpp
index b6dcd4a..a17401d 100644
--- a/src/loginform.cpp
+++ b/src/loginform.cpp
@@ -338,8 +338,9 @@ void LoginForm::resetForm()
{
if (Settings::guestSessionEnabled())
ui->loginChooser->setCurrentWidget(ui->welcomePage);
- ui->userInput->clear();
ui->passwordInput->clear();
+ ui->userInput->clear();
+ ui->userInput->setFocus();
}
bool LoginForm::eventFilter(QObject *object, QEvent *event)