diff options
author | AlexanderP ProductEngine <apaschenko@productengine.com> | 2012-07-13 20:24:44 +0300 |
---|---|---|
committer | AlexanderP ProductEngine <apaschenko@productengine.com> | 2012-07-13 20:24:44 +0300 |
commit | 56277fa43c6f6491d356c6fb8a0a0275d4cd00fc (patch) | |
tree | 2bb2686a4ebce15039bb534a3d532eccdd055b4c /indra | |
parent | 7f7a9b7cbae153b00b8a77d3d662257bf6152912 (diff) |
CHUI-206 FIXED Viewer crash when selecting to cut inventory item, then selecting to cut another inventory item
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llfolderviewmodelinventory.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/indra/newview/llfolderviewmodelinventory.cpp b/indra/newview/llfolderviewmodelinventory.cpp index d23b4af8cb..dff1e1be90 100644 --- a/indra/newview/llfolderviewmodelinventory.cpp +++ b/indra/newview/llfolderviewmodelinventory.cpp @@ -158,22 +158,20 @@ 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 |