1
0
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:
Vincas Dargis 2016-06-25 17:45:14 +03:00
parent 684835de1b
commit 6e8ea15a15

View File

@ -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;
}