Browse Source

fix(loginscreen.cpp): fix password input focus after mouse click

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.
pull/3437/head
Vincas Dargis 9 years ago
parent
commit
6e8ea15a15
  1. 1
      src/widget/loginscreen.cpp

1
src/widget/loginscreen.cpp

@ -235,6 +235,7 @@ void LoginScreen::onLogin() @@ -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;
}

Loading…
Cancel
Save