From 2f9d19913018ec6e9e976a70bf8f90edab90f4d6 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 12 Jun 2012 00:21:51 +0000 Subject: [PATCH] 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 --- src/common/menucmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ) { -- 2.50.0