summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2012-08-28 19:09:57 -0700
committerMerov Linden <merov@lindenlab.com>2012-08-28 19:09:57 -0700
commitc4638d1dca7f3292d7ce48ddb2f5598f86282c88 (patch)
treea51a29634b66a5669b6b9c97f2b13f47cce2cb88 /indra/llui
parent99e0c35c40354a3ad4d9e6e0d92a73c15c844441 (diff)
CHUI-280 : WIP : Implement update of LLConversationModel in LLParticipantList
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llfolderviewmodel.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/llui/llfolderviewmodel.h b/indra/llui/llfolderviewmodel.h
index 41660c6e1e..16d9c86fd7 100644
--- a/indra/llui/llfolderviewmodel.h
+++ b/indra/llui/llfolderviewmodel.h
@@ -262,6 +262,15 @@ public:
child->setParent(NULL);
dirtyFilter();
}
+
+ virtual void clearChildren()
+ {
+ // As this is cleaning the whole list of children wholesale, we do need to delete the pointed objects
+ // This is different and not equivalent to calling removeChild() on each child
+ std::for_each(mChildren.begin(), mChildren.end(), DeletePointer());
+ mChildren.clear();
+ dirtyFilter();
+ }
void setPassedFilter(bool passed, S32 filter_generation, std::string::size_type string_offset = std::string::npos, std::string::size_type string_size = 0)
{