the menuitem wasn't deselected when you moved the mouse away from the menu window. Thanks to Axel for reporting.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13418 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2005-07-04 10:17:19 +00:00
parent 553ea30124
commit 1a02bff863

View File

@ -1113,8 +1113,13 @@ BMenu::_track(int *action, long start)
if (item != NULL) {
if (item != fSelected)
SelectItem(item);
}
} else if (fSelected != NULL) {
BPoint screenLocation = location;
ConvertToScreen(&screenLocation);
if (!OverSubmenu(fSelected, screenLocation))
SelectItem(NULL);
}
int submenuAction = MENU_ACT_NONE;
BMenuItem *submenuItem = NULL;
if (fSelected != NULL && fSelected->Submenu() != NULL) {