diff --git a/src/forms/SettingsDialog.cpp b/src/forms/SettingsDialog.cpp index cb86e5c3..7a5992c4 100644 --- a/src/forms/SettingsDialog.cpp +++ b/src/forms/SettingsDialog.cpp @@ -90,8 +90,10 @@ void SettingsDialog::showEvent(QShowEvent *event) sessionTableTimer->start(1000); } -void SettingsDialog::closeEvent(QCloseEvent *event) +void SettingsDialog::hideEvent(QHideEvent *event) { + UNUSED_PARAMETER(event); + if (sessionTableTimer->isActive()) sessionTableTimer->stop(); diff --git a/src/forms/SettingsDialog.h b/src/forms/SettingsDialog.h index 2c16fd92..c6679def 100644 --- a/src/forms/SettingsDialog.h +++ b/src/forms/SettingsDialog.h @@ -16,7 +16,7 @@ public: explicit SettingsDialog(QWidget* parent = 0); ~SettingsDialog(); void showEvent(QShowEvent *event); - void closeEvent(QCloseEvent *event); + void hideEvent(QHideEvent *event); void ToggleShowHide(); private Q_SLOTS: