diff options
| author | Amish Naidu <[email protected]> | 2019-03-25 15:41:40 +0530 |
|---|---|---|
| committer | Amish Naidu <[email protected]> | 2019-03-26 14:23:42 +0530 |
| commit | 017cd2322a0ae4c57476871f7715904a7810c9d3 (patch) | |
| tree | 3f57953327c22a7dbaffd657d96e09171a917f3f /src/settings/dolphinsettingsdialog.h | |
| parent | 3dec3ee09236fed44239b6a27d2c7041c49d2314 (diff) | |
Prompt user to save/discard changes upon closing config dialog
Summary:
When the configuration dialog is closed with unsaved changes,
a message box is prompted to save/discard them or cancel the event.
BUG: 391206
Reviewers: #dolphin, elvisangelaccio
Reviewed By: #dolphin, elvisangelaccio
Subscribers: ngraham, elvisangelaccio, kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D19904
Diffstat (limited to 'src/settings/dolphinsettingsdialog.h')
| -rw-r--r-- | src/settings/dolphinsettingsdialog.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/settings/dolphinsettingsdialog.h b/src/settings/dolphinsettingsdialog.h index 4c8768fde..85871b12d 100644 --- a/src/settings/dolphinsettingsdialog.h +++ b/src/settings/dolphinsettingsdialog.h @@ -48,10 +48,14 @@ private slots: void applySettings(); void restoreDefaults(); +protected: + void closeEvent(QCloseEvent* event) override; + private: static SettingsPageBase *createTrashSettingsPage(QWidget *parent); QList<SettingsPageBase*> m_pages; + bool m_unsavedChanges; }; #endif |
