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:
Thomas Goyne 2013-10-16 15:40:17 -07:00
parent 9ea3dbd847
commit b254a6823b
1 changed files with 2 additions and 0 deletions

View File

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