diff options
author | simon <none@none> | 2014-08-21 09:11:11 -0700 |
---|---|---|
committer | simon <none@none> | 2014-08-21 09:11:11 -0700 |
commit | 95a14433b8b6375b8d62970c6df5a08d98764423 (patch) | |
tree | 8578902253fc5454827e24eedc39717be9d987e2 /indra/newview/llfolderviewmodelinventory.cpp | |
parent | a14ba78dbbfc925c94f1e8ed94b52bc08e626e3d (diff) | |
parent | 518cc86156c2e10b9e603ac9e661f8c35faf5f70 (diff) |
Merge downstream code into viewer-lion and become version 3.7.15
Diffstat (limited to 'indra/newview/llfolderviewmodelinventory.cpp')
-rwxr-xr-x | indra/newview/llfolderviewmodelinventory.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/indra/newview/llfolderviewmodelinventory.cpp b/indra/newview/llfolderviewmodelinventory.cpp index 2eca2a8974..7bac47a317 100755 --- a/indra/newview/llfolderviewmodelinventory.cpp +++ b/indra/newview/llfolderviewmodelinventory.cpp @@ -129,18 +129,13 @@ void LLFolderViewModelItemInventory::requestSort() void LLFolderViewModelItemInventory::setPassedFilter(bool passed, S32 filter_generation, std::string::size_type string_offset, std::string::size_type string_size) { - bool generation_skip = mMarkedDirtyGeneration >= 0 - && mPrevPassedAllFilters - && mMarkedDirtyGeneration < mRootViewModel.getFilter().getFirstSuccessGeneration(); LLFolderViewModelItemCommon::setPassedFilter(passed, filter_generation, string_offset, string_size); bool before = mPrevPassedAllFilters; mPrevPassedAllFilters = passedFilter(filter_generation); - if (before != mPrevPassedAllFilters || generation_skip) + if (before != mPrevPassedAllFilters) { - // Need to rearrange the folder if the filtered state of the item changed, - // previously passed item skipped filter generation changes while being dirty - // or previously passed not yet filtered item was marked dirty + // Need to rearrange the folder if the filtered state of the item changed LLFolderViewFolder* parent_folder = mFolderViewItem->getParentFolder(); if (parent_folder) { @@ -149,6 +144,9 @@ void LLFolderViewModelItemInventory::setPassedFilter(bool passed, S32 filter_gen } } + + + bool LLFolderViewModelItemInventory::filterChildItem( LLFolderViewModelItem* item, LLFolderViewFilter& filter ) { S32 filter_generation = filter.getCurrentGeneration(); |