setting source as this, according to thread '[wx-dev] Bug in wxMenuBarBase::UpdateMenus'

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2012-06-12 00:21:51 +00:00
parent 1dcb50be4a
commit 2f9d199130

View File

@ -614,7 +614,7 @@ void wxMenuBase::UpdateUI(wxEvtHandler* source)
{
wxWindowID itemid = item->GetId();
wxUpdateUIEvent event(itemid);
event.SetEventObject( source );
event.SetEventObject( this );
if ( source->ProcessEvent(event) )
{