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:
@@ -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
|
||||
|
Reference in New Issue
Block a user