X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/147e8ebc058cf2986d977388fa3861d8b3ceca93..89edb75e59ec9793aa75e9bac2ff4f7f10748f77:/src/common/menucmn.cpp diff --git a/src/common/menucmn.cpp b/src/common/menucmn.cpp index e97a419bd6..49f2b2d20f 100644 --- a/src/common/menucmn.cpp +++ b/src/common/menucmn.cpp @@ -152,8 +152,6 @@ void wxMenuBase::Init(long style) wxMenuBase::~wxMenuBase() { WX_CLEAR_LIST(wxMenuItemList, m_items); - - // Actually, in GTK, the submenus have to get deleted first. } // ---------------------------------------------------------------------------- @@ -465,7 +463,7 @@ bool wxMenuBase::SendEvent(int id, int checked) wxWindow *win = menu->GetInvokingWindow(); if ( win ) { - processed = win->GetEventHandler()->SafelyProcessEvent(event); + processed = win->HandleWindowEvent(event); break; }