mirror of
https://review.haiku-os.org/haiku
synced 2025-02-01 03:06:08 +01:00
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:
parent
51ecdb00aa
commit
ce8253d97b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user