Prompt the user before closing dirty tabs

This commit is contained in:
Loic Guegan 2023-01-09 10:30:17 +01:00
parent f1a54fd165
commit e686937ce9
9 changed files with 28 additions and 9 deletions

View file

@ -42,6 +42,7 @@ EngineTab::EngineTab(wxWindow *parent, std::string name)
Bind(wxEVT_BUTTON, &EngineTab::OnSave, this, ENGINE_SAVE_CONF_BUTTON);
Bind(wxEVT_BUTTON, &EngineTab::OnDelete, this, ENGINE_DELETE_CONF_BUTTON);
Bind(wxEVT_PG_CHANGED, [p=this](wxPropertyGridEvent& event){p->is_dirty=true;});
}
EngineTab::~EngineTab() {