Revert "BMenu return only enabled items"
Patch by "stimut"
This reverts commit abc26ba8ad.
Reverting this patch fixes #6610
This commit is contained in:
@@ -2528,7 +2528,7 @@ BMenu::_HitTestItems(BPoint where, BPoint slop) const
|
|||||||
int32 itemCount = CountItems();
|
int32 itemCount = CountItems();
|
||||||
for (int32 i = 0; i < itemCount; i++) {
|
for (int32 i = 0; i < itemCount; i++) {
|
||||||
BMenuItem* item = ItemAt(i);
|
BMenuItem* item = ItemAt(i);
|
||||||
if (item->IsEnabled() && item->Frame().Contains(where))
|
if (item->Frame().Contains(where))
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user