diff --git a/src/gui/sharelinkwidget.cpp b/src/gui/sharelinkwidget.cpp index cc3a0952c..3f6b437a6 100644 --- a/src/gui/sharelinkwidget.cpp +++ b/src/gui/sharelinkwidget.cpp @@ -485,7 +485,7 @@ void ShareLinkWidget::toggleExpireDateOptions(const bool enable) _ui->calendar->setDate(date); _ui->calendar->setMinimumDate(QDate::currentDate().addDays(1)); - if(_account->capabilities().sharePublicLinkExpireDateDays() > 0) { + if(_account->capabilities().sharePublicLinkEnforceExpireDate()) { _ui->calendar->setMaximumDate(QDate::currentDate().addDays(_account->capabilities().sharePublicLinkExpireDateDays())); }