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

@ -224,20 +224,17 @@ void CONTEXT_MENU::onMenuEvent( wxMenuEvent& aEvent )
#ifdef __WINDOWS__
if( !evt ) {
// Try to find the submenu which holds the selected item
wxMenu*menu = NULL;
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 )