summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2011-11-28 20:37:58 -0800
committerMerov Linden <merov@lindenlab.com>2011-11-28 20:37:58 -0800
commit3001ad1a02f85e5e4f902e4a5973d4ccfcc689bb (patch)
tree853052ceb4fb141848821c3c07e649226f9da3a6
parentf5159294f1c67503a1137f1fe31a41954643a7d7 (diff)
EXP-1596 : Fetch system folders so we're sure they are empty if we need to hide them
-rw-r--r--indra/newview/llinventoryfilter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llinventoryfilter.cpp b/indra/newview/llinventoryfilter.cpp
index bc02540281..d54bce4619 100644
--- a/indra/newview/llinventoryfilter.cpp
+++ b/indra/newview/llinventoryfilter.cpp
@@ -217,6 +217,8 @@ BOOL LLInventoryFilter::checkAgainstFilterType(const LLFolderViewItem* item) con
bool is_hidden_if_empty = LLViewerFolderType::lookupIsHiddenIfEmpty(listener->getPreferredType());
if (is_hidden_if_empty)
{
+ // Force the fetching of those folders so they are hidden iff they really are empty...
+ gInventory.fetchDescendentsOf(object_id);
return FALSE;
}
}