1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Auto focus input field in login screen

Fixes #1779
This commit is contained in:
tux3 2015-06-05 15:26:45 +02:00
parent 276f411ad2
commit 68122b40ac
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -55,9 +55,15 @@ void LoginScreen::reset()
}
if (profiles.isEmpty())
{
ui->stackedWidget->setCurrentIndex(0);
ui->newUsername->setFocus();
}
else
{
ui->stackedWidget->setCurrentIndex(1);
ui->loginPassword->setFocus();
}
ui->autoLoginCB->setChecked(Settings::getInstance().getAutoLogin());
}