diff options
author | Anton Lundin <glance@acc.umu.se> | 2015-09-10 07:30:39 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-10 09:40:04 -0700 |
commit | 865c4aedee37fe3e8a8fd0e9ef419891361a30fe (patch) | |
tree | a70d262fedb57f4a4ec60a68ee5f7bda5a5827be /qt-ui/configuredivecomputerdialog.h | |
parent | 404cfec7dc2b772f95cbb802e0c6f39bf499110a (diff) | |
download | subsurface-865c4aedee37fe3e8a8fd0e9ef419891361a30fe.tar.gz |
Save settings in closeEvent, not destructor
This switches to use the closeEvent to save settings and cleanup instead
of the destructor.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/configuredivecomputerdialog.h')
-rw-r--r-- | qt-ui/configuredivecomputerdialog.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/configuredivecomputerdialog.h b/qt-ui/configuredivecomputerdialog.h index e41479f32..c304f1029 100644 --- a/qt-ui/configuredivecomputerdialog.h +++ b/qt-ui/configuredivecomputerdialog.h @@ -56,6 +56,9 @@ public: explicit ConfigureDiveComputerDialog(QWidget *parent = 0); ~ConfigureDiveComputerDialog(); +protected: + void closeEvent(QCloseEvent *event); + private slots: void checkLogFile(int state); |