From 3561724b8c2b2e45a65d0adb85b4a082439a7eba Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Fri, 16 Jun 2023 00:39:12 +0300 Subject: SL-19686 Fix filtering returning wrong value --- indra/newview/llinventorygallery.cpp | 8 +++++--- 1 file 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()) -- cgit v1.2.3