X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/23122f8c57a180513a1f750a255ecdac2f61b1a3..29149a64916d6fdc53e445adca9ef83bc58fb6c3:/src/os2/menu.cpp diff --git a/src/os2/menu.cpp b/src/os2/menu.cpp index f6f689e9eb..e307253b91 100644 --- a/src/os2/menu.cpp +++ b/src/os2/menu.cpp @@ -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