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
This commit is contained in:
Stefan Csomor 2012-01-30 16:25:22 +00:00
parent 39cfb4b2ad
commit 4815db04e0

View 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) )