diff options
author | andreykproductengine <akleshchev@productengine.com> | 2014-07-29 17:55:06 +0300 |
---|---|---|
committer | andreykproductengine <akleshchev@productengine.com> | 2014-07-29 17:55:06 +0300 |
commit | 7d8b90ce98e0b88cf8cfb5c6f6d4e0ce31eaaf64 (patch) | |
tree | d02cd7a741e2ed6994170ab3dad47da583448f2c /indra/newview | |
parent | 906e2024580cd824e10e8c6799f13453fb2acd89 (diff) |
MAINT-4289 FIXED [BEAR] Recent Items "Reset Filters" not working correctly
Diffstat (limited to 'indra/newview')
-rwxr-xr-x | indra/newview/llfolderviewmodelinventory.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/indra/newview/llfolderviewmodelinventory.cpp b/indra/newview/llfolderviewmodelinventory.cpp index 11d49ff784..7615c12043 100755 --- a/indra/newview/llfolderviewmodelinventory.cpp +++ b/indra/newview/llfolderviewmodelinventory.cpp @@ -129,15 +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 init_state = getLastFilterGeneration() < 0; LLFolderViewModelItemCommon::setPassedFilter(passed, filter_generation, string_offset, string_size); bool before = mPrevPassedAllFilters; mPrevPassedAllFilters = passedFilter(filter_generation); - if (before != mPrevPassedAllFilters || (init_state && before && !mFolderViewItem->getVisible())) + if (before != mPrevPassedAllFilters) { // Need to rearrange the folder if the filtered state of the item changed - // or folder was hidden during update as filter-dirty (MAINT-4218) LLFolderViewFolder* parent_folder = mFolderViewItem->getParentFolder(); if (parent_folder) { |