fixing the routing of UpdateUI to the window by just passing NULL as source
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1038,18 +1038,13 @@ wxString wxMenuBarBase::GetHelpString(int itemid) const
|
|||||||
|
|
||||||
void wxMenuBarBase::UpdateMenus()
|
void wxMenuBarBase::UpdateMenus()
|
||||||
{
|
{
|
||||||
wxEvtHandler* source;
|
|
||||||
wxMenu* menu;
|
wxMenu* menu;
|
||||||
int nCount = GetMenuCount();
|
int nCount = GetMenuCount();
|
||||||
for (int n = 0; n < nCount; n++)
|
for (int n = 0; n < nCount; n++)
|
||||||
{
|
{
|
||||||
menu = GetMenu( n );
|
menu = GetMenu( n );
|
||||||
if (menu != NULL)
|
if (menu != NULL)
|
||||||
{
|
menu->UpdateUI( NULL );
|
||||||
source = menu->GetEventHandler();
|
|
||||||
if (source != NULL)
|
|
||||||
menu->UpdateUI( source );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user