diff options
-rw-r--r-- | qt-ui/configuredivecomputerdialog.cpp | 4 | ||||
-rw-r--r-- | qt-ui/configuredivecomputerdialog.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/qt-ui/configuredivecomputerdialog.cpp b/qt-ui/configuredivecomputerdialog.cpp index 04c15b1b4..e04dcc399 100644 --- a/qt-ui/configuredivecomputerdialog.cpp +++ b/qt-ui/configuredivecomputerdialog.cpp @@ -299,6 +299,10 @@ void OstcFirmwareCheck::saveOstcFirmware(QNetworkReply *reply) ConfigureDiveComputerDialog::~ConfigureDiveComputerDialog() { +} + +void ConfigureDiveComputerDialog::closeEvent(QCloseEvent *event) +{ QSettings settings; settings.beginGroup("ConfigureDiveComputerDialog"); settings.beginGroup("ostc3GasTable"); 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); |