From 3b8900df30e9a0c97ab1b1c29a5205969f8054d2 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 24 Nov 2017 17:23:48 +0100 Subject: Set focus on pw input after failed login (so users don't type their password in the username box) --- src/loginform.cpp | 3 +-- 1 file changed, 1 insertion(+), 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; } -- cgit v1.2.3-55-g7522