diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-02-08 15:45:54 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-02-08 15:45:54 +0200 |
commit | 6e6ec9d10eee9c3cfab3b9309b7bdb322803bee0 (patch) | |
tree | b088ef35538e100e99637b2bb31c37ed6d29c5bd | |
parent | 693825158f478c478c1ab510c6f7304ae7f4a2ed (diff) |
SL-19134 Hide item properties when moving to trash
-rw-r--r-- | indra/newview/llsidepaneliteminfo.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/indra/newview/llsidepaneliteminfo.cpp b/indra/newview/llsidepaneliteminfo.cpp index 8849e792c5..d9b2ee7763 100644 --- a/indra/newview/llsidepaneliteminfo.cpp +++ b/indra/newview/llsidepaneliteminfo.cpp @@ -239,7 +239,18 @@ void LLSidepanelItemInfo::refresh() LLViewerInventoryItem* item = findItem(); if(item) { - refreshFromItem(item); + const LLUUID trash_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_TRASH); + bool in_trash = (item->getUUID() == trash_id) || gInventory.isObjectDescendentOf(item->getUUID(), trash_id); + if (in_trash && mParentFloater) + { + // Close properties when moving to trash + // Aren't supposed to view properties from trash + mParentFloater->closeFloater(); + } + else + { + refreshFromItem(item); + } return; } |