From 4815db04e0c03a64f5c066db4a69865b7fffbb5e Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 30 Jan 2012 16:25:22 +0000 Subject: [PATCH] always setting the event object to the menu, see #1595 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/menu_osx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) )