X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/16c1f79c04174b8c5e81828c20199724d9593b72..7513f9ffc5f8f6e75d55cc32cafe5ea6a111fcfc:/src/common/event.cpp diff --git a/src/common/event.cpp b/src/common/event.cpp index bfaf9a41b4..795bbef448 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -626,12 +626,12 @@ void wxEvtHandler::AddPendingEvent(wxEvent& event) wxPendingEvents = new wxList; wxPendingEvents->Append(this); - wxLEAVE_CRIT_SECT(*wxPendingEventsLocker); - // 3) Inform the system that new pending events are somwehere, // and that these should be processed in idle time. wxWakeUpIdle(); + + wxLEAVE_CRIT_SECT(*wxPendingEventsLocker); } void wxEvtHandler::ProcessPendingEvents()