diff --git a/src/settings/settingspage.cpp b/src/settings/settingspage.cpp index 6416cfb6a..6aaa111be 100644 --- a/src/settings/settingspage.cpp +++ b/src/settings/settingspage.cpp @@ -34,14 +34,6 @@ SettingsPage::SettingsPage(SettingsDialog *dialog) : QWidget(dialog), dialog_(dialog), ui_widget_(nullptr), changed_(false) {} -void SettingsPage::showEvent(QShowEvent *e) { - - changed_ = false; - - QWidget::showEvent(e); - -} - void SettingsPage::Init(QWidget *ui_widget) { if (!ui_widget) return; diff --git a/src/settings/settingspage.h b/src/settings/settingspage.h index 230614fb6..f1cd3ac2b 100644 --- a/src/settings/settingspage.h +++ b/src/settings/settingspage.h @@ -65,9 +65,6 @@ class SettingsPage : public QWidget { void set_changed() { changed_ = true; } - protected: - void showEvent(QShowEvent *e) override; - private: virtual void Save() = 0; virtual void Cancel() {}