X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2b9de21cbc6f61663a9dee2ab086df671f581d6..095b80e2b5120d4c476a834b2017c355fa9afef0:/src/common/event.cpp?ds=sidebyside diff --git a/src/common/event.cpp b/src/common/event.cpp index 5c40ecf1c8..93d17db76e 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -338,7 +338,7 @@ int wxNewEventType() // ---------------------------------------------------------------------------- /* - * General wxWindows events, covering + * General wxWidgets events, covering * all interesting things that might happen (button clicking, resizing, * setting text in widgets, etc.). * @@ -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