Fix for clarification menu crash (GAL/Windows).
This commit is contained in:
parent
698bd331c4
commit
0001bc2844
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue