don't open the menu if it's disabled.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29463 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -345,6 +345,9 @@ BMenuField::MouseDown(BPoint where)
|
|||||||
if (!fMenuBar->Frame().Contains(where))
|
if (!fMenuBar->Frame().Contains(where))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!fMenuBar->IsEnabled())
|
||||||
|
return;
|
||||||
|
|
||||||
BRect bounds = fMenuBar->ConvertFromParent(Bounds());
|
BRect bounds = fMenuBar->ConvertFromParent(Bounds());
|
||||||
|
|
||||||
fMenuBar->StartMenuBar(-1, false, true, &bounds);
|
fMenuBar->StartMenuBar(-1, false, true, &bounds);
|
||||||
|
|||||||
Reference in New Issue
Block a user