]> git.saurik.com Git - wxWidgets.git/blobdiff - src/aui/tabmdi.cpp
generate middle click events (patch 1521314)
[wxWidgets.git] / src / aui / tabmdi.cpp
index 78f618e0a459465f0e04f810df200d892d4c8df9..0f303edf647c5394309c52e9f8fa9dcfffddb70f 100644 (file)
@@ -132,7 +132,7 @@ void wxTabMDIParentFrame::SetWindowMenu(wxMenu* pMenu)
     }
 }
 
-void wxTabMDIParentFrame::SetMenuBar(wxMenuBar *pMenuBar)
+void wxTabMDIParentFrame::SetMenuBar(wxMenuBarpMenuBar)
 {
     // Remove the Window menu from the old menu bar
     RemoveWindowMenu(GetMenuBar());
@@ -154,13 +154,13 @@ void wxTabMDIParentFrame::SetChildMenuBar(wxTabMDIChildFrame* pChild)
         SetMenuBar(m_pMyMenuBar);
 
         // Make sure we know our menu bar is in use
-        m_pMyMenuBar = NULL;
+        //m_pMyMenuBar = NULL;
     }
      else
     {
         if (pChild->GetMenuBar() == NULL)
             return;
-
+            
         // Do we need to save the current bar?
         if (m_pMyMenuBar == NULL)
             m_pMyMenuBar = GetMenuBar();