From 1ec9346f6a87074713624ac27f25432532d18409 Mon Sep 17 00:00:00 2001 From: Vladimir Pchelko Date: Mon, 19 Jul 2010 12:56:53 +0300 Subject: EXT-7899 FIXED setVisible() was overridden IN LLPanelEditWearable to hide(close) LLPanelEditWearable "child" controls by calling "showWearable(mWearablePtr, FALSE);" The problem was in LLPanelEditWearable "child" controls does not handle parent's setVisible() (for example - floater's). --HG-- branch : product-engine --- indra/newview/llpaneleditwearable.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'indra/newview/llpaneleditwearable.cpp') diff --git a/indra/newview/llpaneleditwearable.cpp b/indra/newview/llpaneleditwearable.cpp index 14f05bdb17..60a49c01ba 100644 --- a/indra/newview/llpaneleditwearable.cpp +++ b/indra/newview/llpaneleditwearable.cpp @@ -806,6 +806,15 @@ void LLPanelEditWearable::draw() LLPanel::draw(); } +void LLPanelEditWearable::setVisible(BOOL visible) +{ + if (!visible) + { + showWearable(mWearablePtr, FALSE); + } + LLPanel::setVisible(visible); +} + void LLPanelEditWearable::setWearable(LLWearable *wearable) { showWearable(mWearablePtr, FALSE); -- cgit v1.2.3