Skip to content
Snippets Groups Projects
Commit 1736c7b7 authored by Richard Linden's avatar Richard Linden
Browse files

Backed out changeset: a20e437a726c

parent f303eecc
No related branches found
No related tags found
No related merge requests found
...@@ -158,20 +158,22 @@ bool LLFolderViewModelItemInventory::filterChildItem( LLFolderViewModelItem* ite ...@@ -158,20 +158,22 @@ bool LLFolderViewModelItemInventory::filterChildItem( LLFolderViewModelItem* ite
if (item->getLastFilterGeneration() < filter_generation) if (item->getLastFilterGeneration() < filter_generation)
{ {
// recursive application of the filter for child items
item->filter( filter );
if (item->getLastFilterGeneration() >= must_pass_generation if (item->getLastFilterGeneration() >= must_pass_generation
&& !item->passedFilter(must_pass_generation)) && !item->passedFilter(must_pass_generation))
{ {
// failed to pass an earlier filter that was a subset of the current one // failed to pass an earlier filter that was a subset of the current one
// go ahead and flag this item as done // go ahead and flag this item as done
item->filter(filter);
if (item->passedFilter()) if (item->passedFilter())
{ {
llerrs << "Invalid shortcut in inventory filtering!" << llendl; llerrs << "Invalid shortcut in inventory filtering!" << llendl;
} }
item->setPassedFilter(false, false, filter_generation); item->setPassedFilter(false, false, filter_generation);
} }
else
{
item->filter( filter );
}
} }
// track latest generation to pass any child items, for each folder up to root // track latest generation to pass any child items, for each folder up to root
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment