summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2018-10-12 17:49:21 +0300
committerandreykproductengine <andreykproductengine@lindenlab.com>2018-10-12 17:49:21 +0300
commita209d207d3f716329af06eaddb16e9fa72467ecd (patch)
treedd699563b0a94ec16f8b6a71dd906e90dd091dd3 /indra
parentefb45915a13af81266a266d8d662b529941dc40c (diff)
SL-9733 Fixed missed removal updates and reenabled trash folder
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llinventorypanel.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llinventorypanel.cpp b/indra/newview/llinventorypanel.cpp
index fb010fa858..43904675d4 100644
--- a/indra/newview/llinventorypanel.cpp
+++ b/indra/newview/llinventorypanel.cpp
@@ -1781,7 +1781,6 @@ void LLAssetFilteredInventoryPanel::initFromParams(const Params& p)
mAssetType = LLAssetType::lookup(p.filter_asset_type.getValue());
LLInventoryPanel::initFromParams(p);
U64 filter_cats = getFilter().getFilterCategoryTypes();
- filter_cats &= ~(1ULL << LLFolderType::FT_TRASH);
filter_cats &= ~(1ULL << LLFolderType::FT_MARKETPLACE_LISTINGS);
getFilter().setFilterCategoryTypes(filter_cats);
getFilter().setFilterNoMarketplaceFolder();
@@ -1806,12 +1805,15 @@ LLFolderViewItem* LLAssetFilteredInventoryPanel::buildNewViews(const LLUUID& id)
void LLAssetFilteredInventoryPanel::itemChanged(const LLUUID& id, U32 mask, const LLInventoryObject* model_item)
{
- if (!model_item)
+ if (!model_item && !getItemByID(id))
{
+ // remove operation, but item is not in panel already
return;
}
- if (model_item->getType() != mAssetType && model_item->getType() != LLAssetType::AT_CATEGORY)
+ if (model_item
+ && model_item->getType() != mAssetType
+ && model_item->getType() != LLAssetType::AT_CATEGORY)
{
return;
}