From c67141430b347c3e9dc4741daf3856882b635ee6 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 28 Sep 2022 12:26:37 +0200 Subject: [PATCH] Fix link shares default expire date being enforced as maximum expire date even when maximum date enforcement is disabled on the server Signed-off-by: Claudio Cambra --- src/gui/sharelinkwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())); }