]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/menucmn.cpp
Use correct extensions in wxDynamicLibrary::CanonicalizeName() on OS X.
[wxWidgets.git] / src / common / menucmn.cpp
index 7230bb103ded730ff8a3b8b74b460b3e1cead896..dacfbf4d90a9ba68d7b2b8c42df8a7d08c676845 100644 (file)
@@ -925,6 +925,7 @@ void wxMenuBarBase::Attach(wxFrame *frame)
 {
     wxASSERT_MSG( !IsAttached(), wxT("menubar already attached!") );
 
+    SetParent(frame);
     m_menuBarFrame = frame;
 }
 
@@ -933,6 +934,7 @@ void wxMenuBarBase::Detach()
     wxASSERT_MSG( IsAttached(), wxT("detaching unattached menubar") );
 
     m_menuBarFrame = NULL;
+    SetParent(NULL);
 }
 
 // ----------------------------------------------------------------------------