From bd8438f7083643ae5812b14e35e69e69ef1616c6 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Fri, 7 Jun 2024 12:07:40 +0300 Subject: viewer#1619 Fix outfits search pulling up results sometimes Search forces a refresh - can search items that don't exist yet Always notify parent of rect changes despite visibility (alterantively - rearrange on open) --- indra/newview/llinventoryitemslist.cpp | 2 +- indra/newview/lloutfitslist.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/llinventoryitemslist.cpp b/indra/newview/llinventoryitemslist.cpp index cac859387c..c6042142eb 100644 --- a/indra/newview/llinventoryitemslist.cpp +++ b/indra/newview/llinventoryitemslist.cpp @@ -115,7 +115,7 @@ void LLInventoryItemsList::doIdle() { if (mRefreshState == REFRESH_COMPLETE) return; - if (isInVisibleChain() || mForceRefresh ) + if (isInVisibleChain() || mForceRefresh || !getFilterSubString().empty()) { refresh(); diff --git a/indra/newview/lloutfitslist.cpp b/indra/newview/lloutfitslist.cpp index 66d8bff18f..273eecda80 100644 --- a/indra/newview/lloutfitslist.cpp +++ b/indra/newview/lloutfitslist.cpp @@ -567,7 +567,7 @@ void LLOutfitsList::onFilterSubStringChanged(const std::string& new_string, cons LLWearableItemsList* list = dynamic_cast(tab->getAccordionView()); if (list) { - list->setFilterSubString(new_string, tab->getDisplayChildren()); + list->setFilterSubString(new_string, true); } if (old_string.empty()) -- cgit v1.2.3