summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2009-12-09 19:15:30 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2009-12-09 19:15:30 -0500
commit50a865e21222764ad8da0743a6b6efcc09b13ec6 (patch)
tree1d91d86ba21de5564b497212629c6b20f9fbe509 /indra
parent579af2da335edd6a62cc0e4881ed59682e2c2d04 (diff)
parent522463108b61a740f64908242d347da5a3cccf62 (diff)
merge
--HG-- branch : avatar-pipeline
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llinventorybridge.cpp11
-rw-r--r--indra/newview/skins/default/xui/en/menu_inventory.xml8
2 files changed, 18 insertions, 1 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp
index 3746e9cfeb..4e2acf9907 100644
--- a/indra/newview/llinventorybridge.cpp
+++ b/indra/newview/llinventorybridge.cpp
@@ -67,6 +67,8 @@
using namespace LLOldEvents;
+bool isInOutfitsSidePanel(LLPanel *panel);
+
// Helpers
// bug in busy count inc/dec right now, logic is complex... do we really need it?
void inc_busy_count()
@@ -566,8 +568,15 @@ void LLInvFVBridge::getClipboardEntries(bool show_asset_id,
}
items.push_back(std::string("Paste Separator"));
+
+ if (obj && obj->getIsLinkType())
+ {
+ items.push_back(std::string("Remove"));
+ }
+
items.push_back(std::string("Delete"));
- if (!isItemRemovable())
+ const bool is_sidepanel = isInOutfitsSidePanel(mInventoryPanel.get());
+ if ((obj && obj->getIsLinkType() && is_sidepanel) || !isItemRemovable())
{
disabled_items.push_back(std::string("Delete"));
}
diff --git a/indra/newview/skins/default/xui/en/menu_inventory.xml b/indra/newview/skins/default/xui/en/menu_inventory.xml
index a36bfb8ec1..7e8d259cd0 100644
--- a/indra/newview/skins/default/xui/en/menu_inventory.xml
+++ b/indra/newview/skins/default/xui/en/menu_inventory.xml
@@ -451,6 +451,14 @@
<menu_item_separator
layout="topleft" />
<menu_item_call
+ label="Remove"
+ layout="topleft"
+ name="Remove">
+ <menu_item_call.on_click
+ function="Inventory.DoToSelected"
+ parameter="delete" />
+ </menu_item_call>
+ <menu_item_call
label="Delete"
layout="topleft"
name="Delete">