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:
@@ -1113,8 +1113,13 @@ BMenu::_track(int *action, long start)
|
|||||||
if (item != NULL) {
|
if (item != NULL) {
|
||||||
if (item != fSelected)
|
if (item != fSelected)
|
||||||
SelectItem(item);
|
SelectItem(item);
|
||||||
}
|
} else if (fSelected != NULL) {
|
||||||
|
BPoint screenLocation = location;
|
||||||
|
ConvertToScreen(&screenLocation);
|
||||||
|
if (!OverSubmenu(fSelected, screenLocation))
|
||||||
|
SelectItem(NULL);
|
||||||
|
}
|
||||||
|
|
||||||
int submenuAction = MENU_ACT_NONE;
|
int submenuAction = MENU_ACT_NONE;
|
||||||
BMenuItem *submenuItem = NULL;
|
BMenuItem *submenuItem = NULL;
|
||||||
if (fSelected != NULL && fSelected->Submenu() != NULL) {
|
if (fSelected != NULL && fSelected->Submenu() != NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user