]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/menu_osx.cpp
Fix compilation of wxOSX event loop without wxUSE_EVENTLOOP_SOURCE.
[wxWidgets.git] / 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) )