summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-05-17 17:23:47 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-05-17 17:24:17 +0300
commit3066cce1996ae680501dd2166dcf9773a4e75585 (patch)
tree9e2d2ac47daa0466bdd44af7fdd71c9974639234 /indra
parent382b45cf227d5ec2063b39e50c4d68d4a5c4dd67 (diff)
viewer#1300 Small menu adjustment
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llinventorybridge.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp
index 20d415cda9..e930af2d27 100644
--- a/indra/newview/llinventorybridge.cpp
+++ b/indra/newview/llinventorybridge.cpp
@@ -872,11 +872,13 @@ void LLInvFVBridge::getClipboardEntries(bool show_asset_id,
{
items.push_back(std::string("Remove from Favorites"));
}
- else if (is_agent_inventory
- && gInventory.getRootFolderID() != mUUID
- && !gInventory.isObjectDescendentOf(mUUID, gInventory.findCategoryUUIDForType(LLFolderType::FT_TRASH)))
+ else if (is_agent_inventory && !gInventory.isObjectDescendentOf(mUUID, gInventory.findCategoryUUIDForType(LLFolderType::FT_TRASH)))
{
items.push_back(std::string("Add to Favorites"));
+ if (gInventory.getRootFolderID() == mUUID)
+ {
+ disabled_items.push_back(std::string("Add to Favorites"));
+ }
}
if (obj->getIsLinkType())