From ecc170decc8175feb2ce1072036bc8d6284a8f8e Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Wed, 14 Oct 2020 18:37:34 +0200 Subject: [PATCH] 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 --- src/gui/sharedialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.30.2