and there, the usual forgotten stuff

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17096 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2006-04-11 20:53:11 +00:00
parent 2191a09a93
commit 7d550b53a0
2 changed files with 4 additions and 0 deletions

View File

@ -1186,6 +1186,8 @@ BMenu::_track(int *action, bigtime_t trackTime, long start)
UnlockLooper();
locked = false;
int submenuAction = MENU_ACT_NONE;
if (IsStickyMode())
fSelected->Submenu()->SetStickyMode(true);
BMenuItem *submenuItem = fSelected->Submenu()->_track(&submenuAction, startTime);
if (submenuAction == MENU_ACT_CLOSE) {
item = submenuItem;

View File

@ -416,6 +416,8 @@ BMenuBar::Track(int32 *action, int32 startIndex, bool showMenu)
window->Unlock();
locked = false;
snoozeAmount = 0;
if (IsStickyMode())
menu->SetStickyMode(true);
resultItem = menu->_track(&localAction, startTime);
}
} else if (menuItem == NULL && !IsStickyMode())