X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/48d43515c24e7f3032a7119179da4eddaf4c1ed4..a69561317309e7b6d29dbdd3465e16f8ceba8fb7:/src/osx/menu_osx.cpp?ds=inline diff --git a/src/osx/menu_osx.cpp b/src/osx/menu_osx.cpp index 4280dcfa1c..70df6ba07a 100644 --- a/src/osx/menu_osx.cpp +++ b/src/osx/menu_osx.cpp @@ -429,7 +429,7 @@ bool wxMenu::HandleCommandProcess( wxMenuItem* item, wxWindow* senderWindow ) if ( senderWindow != NULL ) { wxCommandEvent event(wxEVT_COMMAND_MENU_SELECTED , menuid); - event.SetEventObject(senderWindow); + event.SetEventObject(this); event.SetInt(item->IsCheckable() ? item->IsChecked() : -1); if ( senderWindow->HandleWindowEvent(event) )