X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f42c05a1a956878cb6ef28c9faabbf801361e6d..55a40ad970a1ac4f6d1457a441be4d83445efb74:/src/msw/mdi.cpp diff --git a/src/msw/mdi.cpp b/src/msw/mdi.cpp index 9bcee0a86a..44f8c19f17 100644 --- a/src/msw/mdi.cpp +++ b/src/msw/mdi.cpp @@ -369,8 +369,7 @@ void wxMDIParentFrame::SetWindowMenu(wxMenu* menu) } #if wxUSE_ACCEL - delete m_accelWindowMenu; - m_accelWindowMenu = NULL; + wxDELETE(m_accelWindowMenu); if ( menu && menu->HasAccels() ) m_accelWindowMenu = menu->CreateAccelTable(); @@ -686,7 +685,7 @@ bool wxMDIParentFrame::TryBefore(wxEvent& event) if ( event.GetEventType() == wxEVT_COMMAND_MENU_SELECTED ) { wxMDIChildFrame * const child = GetActiveChild(); - if ( child && child->ProcessEventHere(event) ) + if ( child && child->ProcessWindowEventLocally(event) ) return true; }