diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-08-13 14:49:06 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-08-16 11:07:50 +0300 |
commit | 247beebfac0583b9e6101f54398de3fd94a47caa (patch) | |
tree | 624564296b1d8b09fbd2b7779d833bcbf8825318 /src/gui | |
parent | a61080e1708a253ef8bb5673c896a75ba7ef7051 (diff) |
No need to save the geometry if we don't restore
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/sharedialog.cpp | 9 | ||||
-rw-r--r-- | src/gui/sharedialog.h | 1 |
2 files changed, 1 insertions, 9 deletions
diff --git a/src/gui/sharedialog.cpp b/src/gui/sharedialog.cpp index 666280261..55424bdf3 100644 --- a/src/gui/sharedialog.cpp +++ b/src/gui/sharedialog.cpp @@ -56,7 +56,7 @@ ShareDialog::ShareDialog(QPointer<AccountState> accountState, { setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); setAttribute(Qt::WA_DeleteOnClose); - setObjectName("SharingDialog"); // required as group for saveGeometry call + setObjectName("SharingDialog"); _ui->setupUi(this); @@ -142,13 +142,6 @@ ShareDialog::~ShareDialog() delete _ui; } -void ShareDialog::done(int r) -{ - ConfigFile cfg; - cfg.saveGeometry(this); - QDialog::done(r); -} - void ShareDialog::slotPropfindReceived(const QMap<QString, QString> &result) { const auto &receivedPermissions = result["share-permissions"]; diff --git a/src/gui/sharedialog.h b/src/gui/sharedialog.h index 67e24c0a3..5301902b1 100644 --- a/src/gui/sharedialog.h +++ b/src/gui/sharedialog.h @@ -51,7 +51,6 @@ public: QSize minimumSizeHint() const override; private slots: - void done(int r) override; void slotPropfindReceived(const QMap<QString, QString> &result); void slotPropfindError(); void slotThumbnailFetched(const int &statusCode, const QByteArray &reply); |