X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d2824cdb7f6ac2371fefd3d44eff62bb48ebc0a3..404b319a85dadd7decf7a5a5331020520031a41c:/src/generic/mdig.cpp?ds=sidebyside diff --git a/src/generic/mdig.cpp b/src/generic/mdig.cpp index bc81b3c8d1..0c139b9470 100644 --- a/src/generic/mdig.cpp +++ b/src/generic/mdig.cpp @@ -74,11 +74,7 @@ wxGenericMDIParentFrame::~wxGenericMDIParentFrame() wxDELETE(m_clientWindow); #if wxUSE_MENUS - if (m_pMyMenuBar) - { - delete m_pMyMenuBar; - m_pMyMenuBar = NULL; - } + wxDELETE(m_pMyMenuBar); RemoveWindowMenu(GetMenuBar()); #endif // wxUSE_MENUS @@ -372,7 +368,7 @@ bool wxGenericMDIParentFrame::ProcessEvent(wxEvent& event) m_childHandler = m_currentChild; wxON_BLOCK_EXIT_NULL(m_childHandler); - if ( m_currentChild->ProcessEvent(event) ) + if ( m_currentChild->ProcessWindowEvent(event) ) return true; } } @@ -515,7 +511,7 @@ void wxGenericMDIChildFrame::OnClose(wxCloseEvent& WXUNUSED(event)) delete this; } -bool wxGenericMDIChildFrame::TryParent(wxEvent& event) +bool wxGenericMDIChildFrame::TryAfter(wxEvent& event) { // we shouldn't propagate the event to the parent if we received it from it // in the first place @@ -523,7 +519,7 @@ bool wxGenericMDIChildFrame::TryParent(wxEvent& event) if ( parent && parent->WXIsInsideChildHandler(this) ) return false; - return wxTDIChildFrame::TryParent(event); + return wxTDIChildFrame::TryAfter(event); } // ----------------------------------------------------------------------------