diff options
author | Oz Linden <oz@lindenlab.com> | 2010-12-03 17:09:22 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2010-12-03 17:09:22 -0500 |
commit | 7549df0eaf347e9f490f9cfaf4950dd623a08237 (patch) | |
tree | 2949dade42fc865c5abd83854b9f04529a01c581 /indra/newview/llsidepanelappearance.cpp | |
parent | 4f5b27c933c827b98886d6218908b83e85672e3e (diff) | |
parent | 2491555272283340206f3532b9417ec07df40022 (diff) |
merging beta fixes after 2.4.0-beta1
Diffstat (limited to 'indra/newview/llsidepanelappearance.cpp')
-rw-r--r-- | indra/newview/llsidepanelappearance.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/indra/newview/llsidepanelappearance.cpp b/indra/newview/llsidepanelappearance.cpp index 1999f14828..b316171604 100644 --- a/indra/newview/llsidepanelappearance.cpp +++ b/indra/newview/llsidepanelappearance.cpp @@ -183,12 +183,15 @@ void LLSidepanelAppearance::onOpen(const LLSD& key) void LLSidepanelAppearance::onVisibilityChange(const LLSD &new_visibility) { - updateToVisibility(new_visibility); + LLSD visibility; + visibility["visible"] = new_visibility.asBoolean(); + visibility["reset_accordion"] = true; + updateToVisibility(visibility); } void LLSidepanelAppearance::updateToVisibility(const LLSD &new_visibility) { - if (new_visibility.asBoolean()) + if (new_visibility["visible"].asBoolean()) { bool is_outfit_edit_visible = mOutfitEdit && mOutfitEdit->getVisible(); bool is_wearable_edit_visible = mEditWearable && mEditWearable->getVisible(); @@ -209,7 +212,7 @@ void LLSidepanelAppearance::updateToVisibility(const LLSD &new_visibility) } } - if (is_outfit_edit_visible) + if (is_outfit_edit_visible && new_visibility["reset_accordion"].asBoolean()) { mOutfitEdit->resetAccordionState(); } |