1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

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

This commit is contained in:
agilob 2015-10-17 18:17:58 +01:00
commit 7b90ed1abb
No known key found for this signature in database
GPG Key ID: 296F0B764741106C

View File

@ -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"));