Interface kit: fix displaying draggers when they were initially hidden
IsHidden(this) should be used instead of IsHidden() because IsHidden() return true if window is hidden (at moment of creation for example). Fixes #15646. Change-Id: I08c8bacd634139dd62fb239e16cb80f512e4be6d Reviewed-on: https://review.haiku-os.org/c/haiku/+/2128 Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
This commit is contained in:
parent
82f610c6ab
commit
c4a686d8d1
|
@ -658,7 +658,7 @@ BDragger::_AddToList()
|
||||||
// The dragger is not shown - but we can't hide us in case we're the
|
// The dragger is not shown - but we can't hide us in case we're the
|
||||||
// parent of the actual target view (because then you couldn't see
|
// parent of the actual target view (because then you couldn't see
|
||||||
// it anymore).
|
// it anymore).
|
||||||
if (fRelation != TARGET_IS_CHILD && !IsHidden())
|
if (fRelation != TARGET_IS_CHILD && !IsHidden(this))
|
||||||
Hide();
|
Hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue