Browse Source

Merge remote-tracking branch 'zetok/fix-password-dialog'

pull/2355/merge
agilob 10 years ago
parent
commit
7b90ed1abb
No known key found for this signature in database
GPG Key ID: 296F0B764741106C
  1. 8
      src/widget/form/setpassworddialog.cpp

8
src/widget/form/setpassworddialog.cpp

@ -53,8 +53,12 @@ void SetPasswordDialog::onPasswordEdit() @@ -53,8 +53,12 @@ void SetPasswordDialog::onPasswordEdit()
{
QString pswd = ui->passwordlineEdit->text();
if (pswd.length() < 6)
if (pswd.isEmpty())
{
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
ui->body->setText(body);
}
else if (pswd.length() < 6)
{
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
ui->body->setText(body + tr("The password is too short"));

Loading…
Cancel
Save