summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorybridge.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2009-12-09 19:12:05 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2009-12-09 19:12:05 -0500
commit522463108b61a740f64908242d347da5a3cccf62 (patch)
tree02d71a157439cb6d54fa1a182a344a55dd018079 /indra/newview/llinventorybridge.cpp
parentcb88b7f4a41f66249129eaa9b173ec8c206a3958 (diff)
For EXT-2858: Determine gear menu / right-click menu choices for AppearanceSP
--HG-- branch : avatar-pipeline
Diffstat (limited to 'indra/newview/llinventorybridge.cpp')
-rw-r--r--indra/newview/llinventorybridge.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp
index ea47013781..d9a5f1837f 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"));
}