]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/frame.cpp
More small fixes
[wxWidgets.git] / src / msw / frame.cpp
index 8b0ff3270d7f35acfb34e3b3baddadcfc986a644..6ff16e1ff835f2f19da9eab37ab23a50b5c1ed0f 100644 (file)
@@ -507,7 +507,8 @@ void wxFrameMSW::SetMenuBar(wxMenuBar *menubar)
         }
         else
         {
-            menubar->Detach();
+            if (menubar->IsAttached())
+                menubar->Detach();
 
             m_hMenu = menubar->Create();