]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/framecmn.cpp
ensure that the compatibility defines are not set for wxBase which doesn't need them
[wxWidgets.git] / src / common / framecmn.cpp
index 7b067ddf0dda3d3585e91b4b4e72623a57089a29..8bc2ffb5db650f512cc7343be534c2789b90109d 100644 (file)
@@ -78,6 +78,11 @@ wxFrameBase::wxFrameBase()
 #endif // wxUSE_STATUSBAR
 }
 
+wxFrameBase::~wxFrameBase()
+{
+    // this destructor is required for Darwin
+}
+
 wxFrame *wxFrameBase::New(wxWindow *parent,
                           wxWindowID id,
                           const wxString& title,
@@ -404,8 +409,8 @@ void wxFrameBase::AttachMenuBar(wxMenuBar *menubar)
 {
     if ( menubar )
     {
-        m_frameMenuBar = menubar;
         menubar->Attach((wxFrame *)this);
+        m_frameMenuBar = menubar;
     }
 }