Browse Source

Auto focus input field in login screen

Fixes #1779
pull/1816/head
tux3 10 years ago
parent
commit
68122b40ac
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
  1. 6
      src/widget/loginscreen.cpp

6
src/widget/loginscreen.cpp

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

Loading…
Cancel
Save