From b3e7c3f29490b69524a048ebd4849e6eb9d7f52e Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sat, 2 Nov 2019 19:26:40 +0100 Subject: [PATCH] [users] Run checks more often - check password warnings when the page is entered - re-check (and translate) on language change --- src/modules/users/UsersPage.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/modules/users/UsersPage.cpp b/src/modules/users/UsersPage.cpp index 92070d1da..8a7bca74c 100644 --- a/src/modules/users/UsersPage.cpp +++ b/src/modules/users/UsersPage.cpp @@ -144,6 +144,11 @@ UsersPage::retranslate() "use this computer, you can create multiple " "accounts after installation." ) ); } + // 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()); }