diff --git a/src/gui/sharedialog.cpp b/src/gui/sharedialog.cpp index ca30aa4ff..cffb4e796 100644 --- a/src/gui/sharedialog.cpp +++ b/src/gui/sharedialog.cpp @@ -184,6 +184,10 @@ void ShareDialog::initLinkShareWidget(){ _emptyShareLinkWidget = new ShareLinkWidget(_accountState->account(), _sharePath, _localPath, _maxSharingPermissions, this); _linkWidgetList.append(_emptyShareLinkWidget); + if (_manager) { + connect(_manager, &ShareManager::linkShareRequiresPassword, _emptyShareLinkWidget, &ShareLinkWidget::slotCreateShareRequiresPassword); + } + connect(_emptyShareLinkWidget, &ShareLinkWidget::resizeRequested, this, &ShareDialog::slotAdjustScrollWidgetSize); // connect(this, &ShareDialog::toggleAnimation, _emptyShareLinkWidget, &ShareLinkWidget::slotToggleAnimation); connect(_emptyShareLinkWidget, &ShareLinkWidget::createLinkShare, this, &ShareDialog::slotCreateLinkShare); diff --git a/src/gui/sharelinkwidget.cpp b/src/gui/sharelinkwidget.cpp index 7882cefc7..3a2b40f70 100644 --- a/src/gui/sharelinkwidget.cpp +++ b/src/gui/sharelinkwidget.cpp @@ -401,7 +401,7 @@ void ShareLinkWidget::slotDeleteAnimationFinished() void ShareLinkWidget::slotCreateShareRequiresPassword(const QString &message) { - slotToggleAnimation(true); + slotToggleAnimation(message.isEmpty()); showPasswordOptions(true); if (!message.isEmpty()) { diff --git a/src/gui/sharemanager.cpp b/src/gui/sharemanager.cpp index 2b8fbd4a9..87df91350 100644 --- a/src/gui/sharemanager.cpp +++ b/src/gui/sharemanager.cpp @@ -133,9 +133,8 @@ void Share::deleteShare() void Share::slotDeleted() { - emit shareDeleted(); - updateFolder(_account, _path); + emit shareDeleted(); } void Share::slotOcsError(int statusCode, const QString &message)