summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorRichard Linden <none@none>2012-07-24 15:19:18 -0700
committerRichard Linden <none@none>2012-07-24 15:19:18 -0700
commit1736c7b74e5291b1fee91ae72ff52391ae7d946f (patch)
treea4db5c18a34da9d2bb52cb4108719ed5c4c15e71 /indra
parentf303eeccf705f677e48c5738e5119352fd86b31d (diff)
Backed out changeset: a20e437a726c
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llfolderviewmodelinventory.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llfolderviewmodelinventory.cpp b/indra/newview/llfolderviewmodelinventory.cpp
index dff1e1be90..d23b4af8cb 100644
--- a/indra/newview/llfolderviewmodelinventory.cpp
+++ b/indra/newview/llfolderviewmodelinventory.cpp
@@ -158,20 +158,22 @@ bool LLFolderViewModelItemInventory::filterChildItem( LLFolderViewModelItem* ite
if (item->getLastFilterGeneration() < filter_generation)
{
- // recursive application of the filter for child items
- item->filter( filter );
-
if (item->getLastFilterGeneration() >= must_pass_generation
&& !item->passedFilter(must_pass_generation))
{
// failed to pass an earlier filter that was a subset of the current one
// go ahead and flag this item as done
+ item->filter(filter);
if (item->passedFilter())
{
llerrs << "Invalid shortcut in inventory filtering!" << llendl;
}
item->setPassedFilter(false, false, filter_generation);
}
+ else
+ {
+ item->filter( filter );
+ }
}
// track latest generation to pass any child items, for each folder up to root