mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
404cfec7dc
commit
865c4aedee
2 changed files with 7 additions and 0 deletions
|
@ -298,6 +298,10 @@ void OstcFirmwareCheck::saveOstcFirmware(QNetworkReply *reply)
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigureDiveComputerDialog::~ConfigureDiveComputerDialog()
|
ConfigureDiveComputerDialog::~ConfigureDiveComputerDialog()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void ConfigureDiveComputerDialog::closeEvent(QCloseEvent *event)
|
||||||
{
|
{
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
settings.beginGroup("ConfigureDiveComputerDialog");
|
settings.beginGroup("ConfigureDiveComputerDialog");
|
||||||
|
|
|
@ -56,6 +56,9 @@ public:
|
||||||
explicit ConfigureDiveComputerDialog(QWidget *parent = 0);
|
explicit ConfigureDiveComputerDialog(QWidget *parent = 0);
|
||||||
~ConfigureDiveComputerDialog();
|
~ConfigureDiveComputerDialog();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void closeEvent(QCloseEvent *event);
|
||||||
|
|
||||||
private
|
private
|
||||||
slots:
|
slots:
|
||||||
void checkLogFile(int state);
|
void checkLogFile(int state);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue