]> git.saurik.com Git - wxWidgets.git/blobdiff - src/aui/tabmdi.cpp
prevent disappearing menus in tabmdi
[wxWidgets.git] / src / aui / tabmdi.cpp
index b6d33ca85b1e7f0580e55281b8332a65c8d47c34..d3e0b65eb409a5c35ec58a89829acc5a75f850eb 100644 (file)
@@ -177,7 +177,10 @@ void wxAuiMDIParentFrame::SetChildMenuBar(wxAuiMDIChildFrame* pChild)
     if (!pChild)
     {
         // No Child, set Our menu bar back.
-        SetMenuBar(m_pMyMenuBar);
+        if (m_pMyMenuBar)
+            SetMenuBar(m_pMyMenuBar);
+             else
+            SetMenuBar(GetMenuBar());
 
         // Make sure we know our menu bar is in use
         m_pMyMenuBar = NULL;