Add attempted fix for Sonoma menu crashes

See https://gitlab.com/kicad/code/kicad/-/issues/16844#note_1767141019
This commit is contained in:
Jon Evans 2024-02-11 12:00:42 -05:00
parent 22669bcc4d
commit d6fb362bd1
1 changed files with 8 additions and 0 deletions

View File

@ -402,6 +402,14 @@ void ACTION_MENU::OnIdle( wxIdleEvent& event )
void ACTION_MENU::OnMenuEvent( wxMenuEvent& aEvent )
{
#ifdef __WXOSX__
if( aEvent.GetMenu() != this )
{
aEvent.Skip();
return;
}
#endif
OPT_TOOL_EVENT evt;
wxString menuText;
wxEventType type = aEvent.GetEventType();