From 136869d8c02bd5ba5d61c961a127ff179c0b3b63 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 22 Aug 2006 08:55:52 +0000 Subject: [PATCH] Don't start tracking if user clicked and released mouse button on a zone without any item. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18559 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/MenuBar.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/kits/interface/MenuBar.cpp b/src/kits/interface/MenuBar.cpp index 1d20cec845..ec1b39afed 100644 --- a/src/kits/interface/MenuBar.cpp +++ b/src/kits/interface/MenuBar.cpp @@ -467,8 +467,7 @@ BMenuBar::Track(int32 *action, int32 startIndex, bool showMenu) || (buttons != 0 && IsStickyMode() && menuItem == NULL)) break; else if (buttons == 0 && !IsStickyMode()) { - // On an item without a submenu - if (fSelected != NULL && fSelected->Submenu() == NULL) { + if ((fSelected != NULL && fSelected->Submenu() == NULL) || menuItem == NULL) { resultItem = fSelected; break; } else