]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix wrong return value in the changes of r73365.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 13 Jan 2013 15:28:25 +0000 (15:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 13 Jan 2013 15:28:25 +0000 (15:28 +0000)
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

index 74ff3fde6969c916e9b00b613559cd91df4103a9..51e23212bc16754f336a61f5766c83273cdaad6d 100644 (file)
@@ -62,7 +62,8 @@ static bool IsMenuEventAllowed(wxMenu* menu)
         wxWindow* tlw = wxGetTopLevelParent(menu->GetWindow());
         if ( !tlw || !wxDynamicCast(tlw, wxDialog) )
         {
         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;
         }
     }
 
         }
     }