mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
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.
This commit is contained in:
parent
684835de1b
commit
6e8ea15a15
|
@ -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…
Reference in New Issue
Block a user