diff options
author | Simon Rettberg | 2017-11-24 17:23:48 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-11-24 17:23:48 +0100 |
commit | 3b8900df30e9a0c97ab1b1c29a5205969f8054d2 (patch) | |
tree | a4eaf4f381998f1786c5f54680fd83eb51075456 /src/loginform.cpp | |
parent | [cmake] Don't set to C++ only, makes some prechecks fail (diff) | |
download | slxgreeter-3b8900df30e9a0c97ab1b1c29a5205969f8054d2.tar.gz slxgreeter-3b8900df30e9a0c97ab1b1c29a5205969f8054d2.tar.xz slxgreeter-3b8900df30e9a0c97ab1b1c29a5205969f8054d2.zip |
Set focus on pw input after failed login
(so users don't type their password in
the username box)
Diffstat (limited to 'src/loginform.cpp')
-rw-r--r-- | src/loginform.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/loginform.cpp b/src/loginform.cpp index c070f92..823958d 100644 --- a/src/loginform.cpp +++ b/src/loginform.cpp @@ -165,8 +165,7 @@ void LoginForm::cancelLogin() } else { ui->messageLabel->setStyleSheet("color:red"); } - ui->userInput->setFocus(); - ui->userInput->selectAll(); + ui->passwordInput->setFocus(); clearMsg = true; } |