X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2b9de21cbc6f61663a9dee2ab086df671f581d6..a63d48fa138e9eaa3079172ace9a804ba5b0415e:/src/common/event.cpp?ds=sidebyside diff --git a/src/common/event.cpp b/src/common/event.cpp index 5c40ecf1c8..8b0fb73f57 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -1095,6 +1095,11 @@ void wxEvtHandler::AddPendingEvent(wxEvent& event) void wxEvtHandler::ProcessPendingEvents() { + // this method is only called by wxApp if this handler does have pending + // events + wxCHECK_RET( m_pendingEvents, + wxT("Please call wxApp::ProcessPendingEvents() instead") ); + #if defined(__VISAGECPP__) wxENTER_CRIT_SECT( m_eventsLocker); #else