[users] Run checks more often

- check password warnings when the page is entered
 - re-check (and translate) on language change
This commit is contained in:
Adriaan de Groot 2019-11-02 19:26:40 +01:00
parent cc66903678
commit b3e7c3f294

View file

@ -144,6 +144,11 @@ UsersPage::retranslate()
"use this computer, you can create multiple "
"accounts after installation.</small>" ) );
}
// Re-do password checks (with output messages) as well.
// .. the password-checking methods get their values from the text boxes,
// not from their parameters.
onPasswordTextChanged(QString());
onRootPasswordTextChanged(QString());
}
@ -222,6 +227,8 @@ void
UsersPage::onActivate()
{
ui->textBoxFullName->setFocus();
onPasswordTextChanged(QString());
onRootPasswordTextChanged(QString());
}