From e300f28976916ebe014cd7d14b92d46219b9a2fc Mon Sep 17 00:00:00 2001 From: rom Date: Thu, 4 Aug 2016 23:47:21 +0200 Subject: [PATCH] Fix handler for wxEVT_MENU from dropdowns in wxAuiToolBar Send this event to the toolbar own event handler instead of sending it to the parent, the event will be propagated upwards anyhow, but doing it like this also allows to process it in the toolbar itself and is consistent with the other events generated in this code. Closes #17613. --- src/aui/auibar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aui/auibar.cpp b/src/aui/auibar.cpp index a48cfd66d4..980a70cee8 100644 --- a/src/aui/auibar.cpp +++ b/src/aui/auibar.cpp @@ -2548,7 +2548,7 @@ void wxAuiToolBar::OnLeftDown(wxMouseEvent& evt) { wxCommandEvent event(wxEVT_MENU, res); event.SetEventObject(this); - GetParent()->GetEventHandler()->ProcessEvent(event); + GetEventHandler()->ProcessEvent(event); } }