From b254a6823b5fe3b59b90ebaaf7cdf730bffefeb4 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 16 Oct 2013 15:40:17 -0700 Subject: [PATCH] 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. --- aegisub/src/frame_main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aegisub/src/frame_main.cpp b/aegisub/src/frame_main.cpp index b79a4201b..0976a89e4 100644 --- a/aegisub/src/frame_main.cpp +++ b/aegisub/src/frame_main.cpp @@ -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();