diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2022-11-17 17:21:37 +0200 |
---|---|---|
committer | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2022-11-17 17:21:37 +0200 |
commit | 333786d2ba3dc3b1771a9286c1e8c60152ed7037 (patch) | |
tree | b9a65a0b910835539b60579066221cb756ee3e55 /indra/newview/llpanelmaininventory.cpp | |
parent | a954523f4697ecfa78b0ee2d3c7e26c4fa019d1f (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.cpp | 12 |
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(); |