diff options
author | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-10-14 19:37:34 +0300 |
---|---|---|
committer | Camila (Rebase PR Action) <hello@camila.codes> | 2020-10-19 17:33:19 +0300 |
commit | ecc170decc8175feb2ce1072036bc8d6284a8f8e (patch) | |
tree | d9e22e69c315bf30d7cf426b02433214b7c57e92 /src/gui | |
parent | e502e719267370f2920d2eb7efc14d34388ff850 (diff) |
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 <kevin.ottens@nextcloud.com>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/sharedialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); |