fix the event handling in presence of pushed event handlers broken by r55784 (closes #9992)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-09-22 14:11:40 +00:00
parent 41b93cd7d7
commit 358e9f2f72
2 changed files with 18 additions and 7 deletions

View File

@@ -1273,6 +1273,13 @@ wxEvtHandler::ProcessEventIfMatches(const wxEventTableEntryBase& entry,
bool wxEvtHandler::TryParent(wxEvent& event)
{
if ( GetNextHandler() )
{
// the next handler will pass it to wxTheApp if it doesn't process it,
// so return from here to avoid doing it again
return GetNextHandler()->TryParent(event);
}
if ( wxTheApp && (this != wxTheApp) )
{
// Special case: don't pass wxEVT_IDLE to wxApp, since it'll always