mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-25 06:38:34 +00:00
Prompt the user before closing dirty tabs
This commit is contained in:
parent
f1a54fd165
commit
e686937ce9
9 changed files with 28 additions and 9 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue