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

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