summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2017-11-24 17:23:48 +0100
committerSimon Rettberg2017-11-24 17:23:48 +0100
commit3b8900df30e9a0c97ab1b1c29a5205969f8054d2 (patch)
treea4eaf4f381998f1786c5f54680fd83eb51075456
parent[cmake] Don't set to C++ only, makes some prechecks fail (diff)
downloadslxgreeter-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)
-rw-r--r--src/loginform.cpp3
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;
}