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) )
// hide items in the apple menu that don't exist in the wx menubar
- int menuid = 0;
wxMenuItem* appleItem = NULL;
wxMenuItem* wxItem = NULL;
- menuid = wxApp::s_macAboutMenuItemId;
+ int menuid = wxApp::s_macAboutMenuItemId;
appleItem = m_appleMenu->FindItem(menuid);
wxItem = FindItem(menuid);
if ( appleItem != NULL )