Check that expander is enabled before expanding items.
Fixes #16025 Change-Id: Ia69fa23ba8044c0ea14f9b669c13636e087a203d Reviewed-on: https://review.haiku-os.org/c/haiku/+/2702 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
6bd96c5234
commit
eb4b3f721d
@@ -359,7 +359,8 @@ TExpandoMenuBar::MouseMoved(BPoint where, uint32 code, const BMessage* message)
|
|||||||
// force a cleanup
|
// force a cleanup
|
||||||
_FinishedDrag();
|
_FinishedDrag();
|
||||||
|
|
||||||
if (buttons != 0) {
|
if (Vertical() && buttons != 0
|
||||||
|
&& static_cast<TBarApp*>(be_app)->Settings()->superExpando) {
|
||||||
TTeamMenuItem* lastItem
|
TTeamMenuItem* lastItem
|
||||||
= dynamic_cast<TTeamMenuItem*>(fLastClickedItem);
|
= dynamic_cast<TTeamMenuItem*>(fLastClickedItem);
|
||||||
if (lastItem != NULL) {
|
if (lastItem != NULL) {
|
||||||
@@ -490,7 +491,8 @@ TExpandoMenuBar::MouseUp(BPoint where)
|
|||||||
// absorb the message
|
// absorb the message
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lastItem != NULL && lastItem->ExpanderBounds().Contains(where)) {
|
if (Vertical() && static_cast<TBarApp*>(be_app)->Settings()->superExpando
|
||||||
|
&& lastItem != NULL && lastItem->ExpanderBounds().Contains(where)) {
|
||||||
lastItem->ToggleExpandState(true);
|
lastItem->ToggleExpandState(true);
|
||||||
lastItem->SetArrowDirection(lastItem->IsExpanded()
|
lastItem->SetArrowDirection(lastItem->IsExpanded()
|
||||||
? BControlLook::B_DOWN_ARROW
|
? BControlLook::B_DOWN_ARROW
|
||||||
|
|||||||
Reference in New Issue
Block a user