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