diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-06-16 00:39:12 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-06-16 00:39:12 +0300 |
commit | 3561724b8c2b2e45a65d0adb85b4a082439a7eba (patch) | |
tree | 4bf9112bca374378da1e5945ed5721b1cefe3afa /indra | |
parent | e99878083155b81c93b0c8b05f300a4501a2d775 (diff) |
SL-19686 Fix filtering returning wrong value
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llinventorygallery.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llinventorygallery.cpp b/indra/newview/llinventorygallery.cpp index 694881372d..53b62c7fb7 100644 --- a/indra/newview/llinventorygallery.cpp +++ b/indra/newview/llinventorygallery.cpp @@ -661,10 +661,11 @@ bool LLInventoryGallery::applyFilter(LLInventoryGalleryItem* item, const std::st { if(item) { - item->setHidden(!checkAgainstFilters(item, filter_substring)); - return false; + bool visible = checkAgainstFilters(item, filter_substring); + item->setHidden(!visible); + return visible; } - return true; + return false; } bool LLInventoryGallery::checkAgainstFilters(LLInventoryGalleryItem* item, const std::string& filter_substring) @@ -762,6 +763,7 @@ void LLInventoryGallery::onIdle(void* userdata) { self->mNeedsArrange = false; self->reArrangeRows(); + self->updateMessageVisibility(); } if (self->mItemToSelect.notNull()) |