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:
Stefano Ceccherini 2009-03-09 11:11:57 +00:00
parent 51ecdb00aa
commit ce8253d97b

View File

@ -345,6 +345,9 @@ BMenuField::MouseDown(BPoint where)
if (!fMenuBar->Frame().Contains(where))
return;
if (!fMenuBar->IsEnabled())
return;
BRect bounds = fMenuBar->ConvertFromParent(Bounds());
fMenuBar->StartMenuBar(-1, false, true, &bounds);