Commit 0001bc28 authored by Maciej Suminski's avatar Maciej Suminski

Fix for clarification menu crash (GAL/Windows).

parent 698bd331
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment