]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/menucmn.cpp
Correct weak ref usage which triggered an assert
[wxWidgets.git] / src / common / menucmn.cpp
index e97a419bd609a7877703a7d720d4ba18d9799f0e..49f2b2d20ffafc7b9e64d59fac4181cb1ceac7ab 100644 (file)
@@ -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;
             }