Fix double confirmation when exiting with unsaved changes
For some reason the close event is getting sent multiple times and them getting processed in the event loop for the confirmation dialog, resulting in two dialogs.
This commit is contained in:
parent
9ea3dbd847
commit
b254a6823b
1 changed files with 2 additions and 0 deletions
|
@ -548,6 +548,8 @@ BEGIN_EVENT_TABLE(FrameMain, wxFrame)
|
|||
END_EVENT_TABLE()
|
||||
|
||||
void FrameMain::OnCloseWindow(wxCloseEvent &event) {
|
||||
wxEventBlocker blocker(this, wxEVT_CLOSE_WINDOW);
|
||||
|
||||
context->videoController->Stop();
|
||||
context->audioController->Stop();
|
||||
|
||||
|
|
Loading…
Reference in a new issue