Inform _emptyShareLinkWidget of linkShareRequiresPassword signals
authorKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 14 Oct 2020 16:37:34 +0000 (18:37 +0200)
committerCamila (Rebase PR Action) <hello@camila.codes>
Mon, 19 Oct 2020 14:33:19 +0000 (14:33 +0000)
All the other ShareLinkWidgets process that signal (which allows to
display error messages for instance) but not that one for some reason.
That being said it might need to deal with an enforced password
situation.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/gui/sharedialog.cpp

index ca30aa4ff3130b015e39276c1fa93344e8d1b1d9..cffb4e79637878e00c882fcacf0ef5488cd42baa 100644 (file)
@@ -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);