From: Vadim Zeitlin Date: Sun, 13 Jan 2013 15:28:25 +0000 (+0000) Subject: Fix wrong return value in the changes of r73365. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0ecd03525b34edba886ca83ff724265cd912dbbd?ds=inline 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 --- 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; } }