]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed menubar attaching: create it first, THEN set pointer to it
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 12 Feb 2002 10:37:45 +0000 (10:37 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 12 Feb 2002 10:37:45 +0000 (10:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/framecmn.cpp

index 544189a24c7a68c61921e1b789029df3ab0e33c3..8bc2ffb5db650f512cc7343be534c2789b90109d 100644 (file)
@@ -409,8 +409,8 @@ void wxFrameBase::AttachMenuBar(wxMenuBar *menubar)
 {
     if ( menubar )
     {
-        m_frameMenuBar = menubar;
         menubar->Attach((wxFrame *)this);
+        m_frameMenuBar = menubar;
     }
 }