summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelmaininventory.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2022-11-17 17:21:37 +0200
committerMaxim Nikolenko <maximnproductengine@lindenlab.com>2022-11-17 17:21:37 +0200
commit333786d2ba3dc3b1771a9286c1e8c60152ed7037 (patch)
treeb9a65a0b910835539b60579066221cb756ee3e55 /indra/newview/llpanelmaininventory.cpp
parenta954523f4697ecfa78b0ee2d3c7e26c4fa019d1f (diff)
SL-18644 reset 'All items' filter when using 'Find Original' in Recent tab
Diffstat (limited to 'indra/newview/llpanelmaininventory.cpp')
-rw-r--r--indra/newview/llpanelmaininventory.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp
index 89256b40c4..ccda9c2399 100644
--- a/indra/newview/llpanelmaininventory.cpp
+++ b/indra/newview/llpanelmaininventory.cpp
@@ -403,6 +403,18 @@ void LLPanelMainInventory::resetFilters()
setFilterTextFromFilter();
}
+void LLPanelMainInventory::resetAllItemsFilters()
+{
+ LLFloaterInventoryFinder *finder = getFinder();
+ getAllItemsPanel()->getFilter().resetDefault();
+ if (finder)
+ {
+ finder->updateElementsFromFilter();
+ }
+
+ setFilterTextFromFilter();
+}
+
void LLPanelMainInventory::setSortBy(const LLSD& userdata)
{
U32 sort_order_mask = getActivePanel()->getSortOrder();