Same thing as previous commit, only for BMenuBar. Added some other

comment


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23280 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2008-01-07 16:13:14 +00:00
parent 14e826c4ba
commit 8d44324fda
2 changed files with 29 additions and 25 deletions
+5
View File
@@ -1405,6 +1405,11 @@ BMenu::_Track(int *action, long start)
int submenuAction = MENU_STATE_TRACKING;
BMenu *submenu = fSelected->Submenu();
submenu->_SetStickyMode(_IsStickyMode());
// The following call blocks until the submenu
// gives control back to us, either because the mouse
// pointer goes out of the submenu's bounds, or because
// the user closes the menu
BMenuItem *submenuItem = submenu->_Track(&submenuAction);
if (submenuAction == MENU_STATE_CLOSED) {
item = submenuItem;