Dont reset settingspage changed status when window is shown

This is done by Init in Load() when the settings is opened.
This commit is contained in:
Jonas Kvinge 2020-10-22 20:25:31 +02:00
parent eb1344fcec
commit 5733966843
2 changed files with 0 additions and 11 deletions

View File

@ -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;

View File

@ -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() {}