]> git.saurik.com Git - wxWidgets.git/commitdiff
setting source as this, according to thread '[wx-dev] Bug in wxMenuBarBase::UpdateMenus'
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 12 Jun 2012 00:21:51 +0000 (00:21 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 12 Jun 2012 00:21:51 +0000 (00:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/menucmn.cpp

index a39ab6852eb592f5f4ec241410c9355375880358..f34a5bf0f6b43ce247da9a2c2a136f7fcfd9e0f8 100644 (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) )
             {