Only process dynamic events if the eventTypes match
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
759b3c7e2f
commit
f6aa2b2cfb
@ -1253,7 +1253,7 @@ bool wxEvtHandler::SearchDynamicEventTable( wxEvent& event )
|
||||
wxDynamicEventTableEntry *entry = (wxDynamicEventTableEntry*)node->GetData();
|
||||
#endif // WXWIN_COMPATIBILITY_EVENT_TYPES/!WXWIN_COMPATIBILITY_EVENT_TYPES
|
||||
|
||||
if (entry->m_fn)
|
||||
if ((event.m_eventType == entry->m_eventType) && entry->m_fn)
|
||||
{
|
||||
wxEvtHandler *handler =
|
||||
#if !WXWIN_COMPATIBILITY_EVENT_TYPES
|
||||
|
Loading…
Reference in New Issue
Block a user