From: Stefan Csomor Date: Tue, 12 Jun 2012 00:21:51 +0000 (+0000) Subject: setting source as this, according to thread '[wx-dev] Bug in wxMenuBarBase::UpdateMenus' X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2f9d19913018ec6e9e976a70bf8f90edab90f4d6?ds=inline 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 --- diff --git a/src/common/menucmn.cpp b/src/common/menucmn.cpp index a39ab6852e..f34a5bf0f6 100644 --- a/src/common/menucmn.cpp +++ b/src/common/menucmn.cpp @@ -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) ) {