Fix for clarification menu crash (GAL/Windows).

This commit is contained in:
Maciej Suminski 2015-02-11 00:23:45 +01:00
parent 698bd331c4
commit 0001bc2844
1 changed files with 3 additions and 6 deletions

View File

@ -227,17 +227,14 @@ void CONTEXT_MENU::onMenuEvent( wxMenuEvent& aEvent )
wxMenu* menu = NULL;
FindItem( m_selected, &menu );
if( menu )
if( menu && menu != this )
{
menu->ProcessEvent( aEvent );
return;
}
assert( false ); // The event should be handled above
}
#else
#endif
evt = m_customHandler( aEvent );
#endif /* else __WINDOWS__ */
// Handling non-action menu entries (e.g. items in clarification list)
if( !evt )