From 0ecd03525b34edba886ca83ff724265cd912dbbd Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 13 Jan 2013 15:28:25 +0000 Subject: [PATCH] Fix wrong return value in the changes of r73365. Really fix menus under Unity. Closes #14961. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/menu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index 74ff3fde69..51e23212bc 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -62,7 +62,8 @@ static bool IsMenuEventAllowed(wxMenu* menu) wxWindow* tlw = wxGetTopLevelParent(menu->GetWindow()); if ( !tlw || !wxDynamicCast(tlw, wxDialog) ) { - return true; + // This must be an event from a menu bar of one of the frames. + return false; } } -- 2.50.0