Reset both recent and worn inventory panels to their default filters when clearing the search string

Ansariel 2015-01-16 15:09:28 +01:00
parent 5416cea23c
commit 80eb989a42
1 changed files with 2 additions and 2 deletions

View File

@ -550,9 +550,9 @@ void LLPanelMainInventory::onClearSearch()
mActivePanel->setFilterSubString(LLStringUtil::null);
// <FS:Ansariel>
//mActivePanel->setFilterTypes(0xffffffffffffffffULL);
if (mActivePanel->getName() == "Worn Items")
if (mActivePanel->getName() == "Recent Items" || mActivePanel->getName() == "Worn Items")
{
mActivePanel->setFilterTypes(0xffffffff - (0x1 << LLInventoryType::IT_GESTURE));
mActivePanel->getFilter().resetDefault();
}
else
{