Sharing: Disable 'set password' button when password is empty #5788

This commit is contained in:
Christian Kamm 2017-05-22 14:41:06 +02:00
parent 91f6cae168
commit 03aa7e3044

View file

@ -302,7 +302,7 @@ void ShareLinkWidget::slotShareSelectionChanged()
_ui->lineEdit_password->setPlaceholderText("********"); _ui->lineEdit_password->setPlaceholderText("********");
_ui->lineEdit_password->setText(QString()); _ui->lineEdit_password->setText(QString());
_ui->lineEdit_password->setEnabled(true); _ui->lineEdit_password->setEnabled(true);
_ui->pushButton_setPassword->setEnabled(true); _ui->pushButton_setPassword->setEnabled(false);
} else { } else {
_ui->checkBox_password->setChecked(false); _ui->checkBox_password->setChecked(false);
_ui->lineEdit_password->setPlaceholderText(QString()); _ui->lineEdit_password->setPlaceholderText(QString());