summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2010-01-07 14:55:49 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2010-01-07 14:55:49 -0500
commite55193cf85e285ba229254994d88d7a875b82ef6 (patch)
treea98ac04e3eda4c6500cc947ca1684cd95e7b6fe3 /indra/newview
parent16773e0021baf3bfa3e2c32b68440320ac5ff9d5 (diff)
For EXT-4030: Can delete the outfit folder that you're wearing in My Outfits
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llinventorybridge.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp
index d70221b22a..4c868baa92 100644
--- a/indra/newview/llinventorybridge.cpp
+++ b/indra/newview/llinventorybridge.cpp
@@ -2614,6 +2614,13 @@ void LLFolderBridge::buildContextMenu(LLMenuGL& menu, U32 flags)
{
mItems.push_back(std::string("Rename"));
mItems.push_back(std::string("Delete"));
+
+ // EXT-4030: disallow deletion of currently worn outfit
+ const LLViewerInventoryItem *base_outfit_link = LLAppearanceManager::instance().getBaseOutfitLink();
+ if (base_outfit_link && (cat == base_outfit_link->getLinkedCategory()))
+ {
+ mDisabledItems.push_back(std::string("Delete"));
+ }
}
}