git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34004
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
}
// if we're already attached to the menubar, we must update it
}
}
// if we're already attached to the menubar, we must update it
+ if ( IsAttached() && GetMenuBar()->IsAttached() )
{
GetMenuBar()->Refresh();
}
{
GetMenuBar()->Refresh();
}
::DeleteMenuItem(MAC_WXHMENU(m_hMenu) , pos + 1);
::DeleteMenuItem(MAC_WXHMENU(m_hMenu) , pos + 1);
+ if ( IsAttached() && GetMenuBar()->IsAttached() )
{
// otherwise, the change won't be visible
GetMenuBar()->Refresh();
{
// otherwise, the change won't be visible
GetMenuBar()->Refresh();