From: Kevin Ottens Date: Wed, 14 Oct 2020 16:37:34 +0000 (+0200) Subject: Inform _emptyShareLinkWidget of linkShareRequiresPassword signals X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~103^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ecc170decc8175feb2ce1072036bc8d6284a8f8e;p=nextcloud-desktop.git Inform _emptyShareLinkWidget of linkShareRequiresPassword signals 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 --- 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);