summaryrefslogtreecommitdiff
path: root/indra/newview/llfolderviewitem.cpp
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2009-08-12 19:03:20 +0000
committerLoren Shih <seraph@lindenlab.com>2009-08-12 19:03:20 +0000
commit7bbc5cdea6beb4e05c26d1472f789fe6fa536ee3 (patch)
tree9e496156bb377c9bdf0b793a1b07b72dfa4f032c /indra/newview/llfolderviewitem.cpp
parent0bf4b5f2222ffb8171be094613363427f3b8470a (diff)
svn merge -r129617:130277 svn+ssh://svn.lindenlab.com/svn/linden/branches/avatar-pipeline/currently-worn-folder-5 into svn+ssh://svn.lindenlab.com/svn/linden/branches/viewer/viewer-2.0.0-3
For DEV-34223 : AVP Current Outfit Folder For DEV-37485 : AVP Appearance Side Panel For DEV-35335 : AVP Automatic Folder Classification This merges the Appearance Side Panel / Ensemble Typing / Current Outfit Folder work for the AVP team.
Diffstat (limited to 'indra/newview/llfolderviewitem.cpp')
-rw-r--r--indra/newview/llfolderviewitem.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llfolderviewitem.cpp b/indra/newview/llfolderviewitem.cpp
index a6a8da2a76..69ce2f0e0e 100644
--- a/indra/newview/llfolderviewitem.cpp
+++ b/indra/newview/llfolderviewitem.cpp
@@ -1912,12 +1912,16 @@ void LLFolderViewFolder::setOpenArrangeRecursively(BOOL openitem, ERecurseType r
{
BOOL was_open = mIsOpen;
mIsOpen = openitem;
- if(!was_open && openitem)
+ if (mListener)
{
- if(mListener)
+ if(!was_open && openitem)
{
mListener->openItem();
}
+ else if(was_open && !openitem)
+ {
+ mListener->closeItem();
+ }
}
if (recurse == RECURSE_DOWN || recurse == RECURSE_UP_DOWN)