EXP-1596 : Fetch system folders so we're sure they are empty if we need to hide them

meow-7.2.2
Merov Linden 2011-11-28 20:37:58 -08:00
parent f5159294f1
commit 3001ad1a02
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
}