Share UI: Respect enfore-expire #4235

This commit is contained in:
Christian Kamm 2015-12-08 12:16:05 +01:00
parent d92c8bec86
commit 1a519ac1fb

View file

@ -251,7 +251,9 @@ void ShareLinkWidget::slotSharesFetched(const QList<QSharedPointer<Share>> &shar
_ui->pushButton_setPassword->hide();
}
_ui->checkBox_expire->setEnabled(true);
_ui->checkBox_expire->setEnabled(
!_account->capabilities().sharePublicLinkEnforceExpireDate());
_ui->calendar->setMinimumDate(QDate::currentDate().addDays(1));
if (_share->getExpireDate().isValid()) {
_ui->calendar->setDate(_share->getExpireDate());