From b1225cdd1f707d62adacfba6c7a21c42365a0371 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Fri, 28 Aug 2009 21:15:39 +0000 Subject: [PATCH] Correct a use of wx event handling, which should also make FrameMain not require friend access to AudioDisplay. Originally committed to SVN as r3442. --- aegisub/src/frame_main_events.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/frame_main_events.cpp b/aegisub/src/frame_main_events.cpp index 874ac1bdc..eb8f5c2f6 100644 --- a/aegisub/src/frame_main_events.cpp +++ b/aegisub/src/frame_main_events.cpp @@ -1787,7 +1787,7 @@ void FrameMain::OnStatusClear(wxTimerEvent &event) { /// @param event /// void FrameMain::OnKeyDown(wxKeyEvent &event) { - audioBox->audioDisplay->AddPendingEvent(event); + audioBox->audioDisplay->GetEventHandler()->ProcessEvent(event); event.Skip(); }