Lots of OS/2 Updates mirroring msw updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -389,7 +389,7 @@ bool wxMenu::DoInsertOrAppend(
|
||||
//
|
||||
// If we're already attached to the menubar, we must update it
|
||||
//
|
||||
if (IsAttached())
|
||||
if (IsAttached() && m_menuBar->IsAttached())
|
||||
{
|
||||
m_menuBar->Refresh();
|
||||
}
|
||||
@@ -460,7 +460,7 @@ wxMenuItem* wxMenu::DoRemove(
|
||||
,MPFROM2SHORT(pItem->GetId(), TRUE)
|
||||
,(MPARAM)0
|
||||
);
|
||||
if (IsAttached())
|
||||
if (IsAttached() && m_menuBar->IsAttached())
|
||||
{
|
||||
//
|
||||
// Otherwise, the chane won't be visible
|
||||
|
Reference in New Issue
Block a user