Patch by Denis Washington: menubars now, like menus, can be navigated

without keeping the mouse button pressed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24004 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-02-18 13:21:02 +00:00
parent 44cd9847e9
commit 50cd4d0280

View File

@ -477,7 +477,7 @@ BMenuBar::_Track(int32 *action, int32 startIndex, bool showMenu)
// - nonsticky mode and different selection,
// - clicked in sticky mode
if (fSelected == NULL
|| (!_IsStickyMode() && menuItem != fSelected)
|| (menuItem != fSelected)
|| (buttons != 0 && _IsStickyMode())) {
if (menuItem->Submenu() != NULL) {
if (menuItem->Submenu()->Window() == NULL) {