ShareLinkWidget: Set state of passwd checkbox always.

This commit is contained in:
Klaas Freitag 2015-12-02 10:05:56 +01:00
parent 01faf102ba
commit e6ab047751

View file

@ -236,9 +236,8 @@ void ShareLinkWidget::slotSharesFetched(const QList<QSharedPointer<Share>> &shar
_ui->widget_shareLink->show();
_ui->checkBox_shareLink->setChecked(true);
if (!_passwordRequired) {
_ui->checkBox_password->setEnabled(true);
}
_ui->checkBox_password->setEnabled(!_passwordRequired);
if (_share->isPasswordSet()) {
_ui->lineEdit_password->setEnabled(true);
_ui->checkBox_password->setChecked(true);