Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(loginscreen.cpp): fix password input focus after mouse click
Browse files Browse the repository at this point in the history
Add setFocus() call to make password input focus work after user
clicks Load button (hence losing focus) with invalid password.
Without this patch, focus only works when using Enter key to login.
  • Loading branch information
Talkless committed Jun 25, 2016
1 parent 684835d commit 6e8ea15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/widget/loginscreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ void LoginScreen::onLogin()
{
QMessageBox::critical(this, tr("Couldn't load this profile"),
tr("Wrong password."));
ui->loginPassword->setFocus();
ui->loginPassword->selectAll();
return;
}
Expand Down

0 comments on commit 6e8ea15

Please sign in to comment.