]> git.saurik.com Git - wxWidgets.git/commitdiff
always setting the event object to the menu, see #1595
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 30 Jan 2012 16:25:22 +0000 (16:25 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 30 Jan 2012 16:25:22 +0000 (16:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/menu_osx.cpp

index 4280dcfa1cdcdcd653a8f4f0f80e20a5cd077ecb..70df6ba07ac9120af0693ae023bf3545988da5f1 100644 (file)
@@ -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) )