Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2020-09-07 14:36:25 +0300
committerHannah von Reth <vonreth@kde.org>2020-09-07 16:57:53 +0300
commit270ad3ddb83f159af37657de24ddb1cd5cf66e7e (patch)
treeec649bbd2c2aee4e3db46f22688f55a73bd1e494 /src
parent1fac80012b9097b878ac271d94cf22a6a35e2608 (diff)
Make the share dialog modal
Diffstat (limited to 'src')
-rw-r--r--src/gui/owncloudgui.cpp3
-rw-r--r--src/gui/sharedialog.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/owncloudgui.cpp b/src/gui/owncloudgui.cpp
index b78f67c30..46510e8d1 100644
--- a/src/gui/owncloudgui.cpp
+++ b/src/gui/owncloudgui.cpp
@@ -1119,12 +1119,13 @@ void ownCloudGui::slotShowShareDialog(const QString &sharePath, const QString &l
w = _shareDialogs[localPath];
} else {
qCInfo(lcApplication) << "Opening share dialog" << sharePath << localPath << maxSharingPermissions;
- w = new ShareDialog(accountState, sharePath, localPath, maxSharingPermissions, fileRecord.legacyDeriveNumericFileId(), startPage);
+ w = new ShareDialog(accountState, sharePath, localPath, maxSharingPermissions, fileRecord.legacyDeriveNumericFileId(), startPage, settingsDialog());
w->setAttribute(Qt::WA_DeleteOnClose, true);
_shareDialogs[localPath] = w;
connect(w, &QObject::destroyed, this, &ownCloudGui::slotRemoveDestroyedShareDialogs);
}
+ w->open();
raiseDialog(w);
}
diff --git a/src/gui/sharedialog.h b/src/gui/sharedialog.h
index 92cc7de33..9aba8b5e5 100644
--- a/src/gui/sharedialog.h
+++ b/src/gui/sharedialog.h
@@ -46,7 +46,7 @@ public:
SharePermissions maxSharingPermissions,
const QByteArray &numericFileId,
ShareDialogStartPage startPage,
- QWidget *parent = nullptr);
+ QWidget *parent);
~ShareDialog() override;
private slots: