diff options
author | maxim_productengine <mnikolenko@productengine.com> | 2012-08-08 14:34:58 +0300 |
---|---|---|
committer | maxim_productengine <mnikolenko@productengine.com> | 2012-08-08 14:34:58 +0300 |
commit | 2e55692a68987bfdf8f0bf55c871bd2d682c10ad (patch) | |
tree | 12df5f8fb1af1855e60386fe4d7a1420218cf99d /indra/newview | |
parent | d047042edcb4407689db6b7a218ca16dd3bf12b0 (diff) |
MAINT-65 FIXED Disable "Edit" in context menu if wearable has status "no modify"
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llinventorybridge.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 6aa55f9183..c067a86104 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -5598,7 +5598,8 @@ void LLWearableBridge::buildContextMenu(LLMenuGL& menu, U32 flags) items.push_back(std::string("Wearable Edit")); - if ((flags & FIRST_SELECTED_ITEM) == 0) + bool modifiable = !gAgentWearables.isWearableModifiable(item->getUUID()); + if (((flags & FIRST_SELECTED_ITEM) == 0) || modifiable) { disabled_items.push_back(std::string("Wearable Edit")); } |