diff options
-rw-r--r-- | linden/indra/newview/llinventorybridge.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/linden/indra/newview/llinventorybridge.cpp b/linden/indra/newview/llinventorybridge.cpp index 30b0a4a..0f999fc 100644 --- a/linden/indra/newview/llinventorybridge.cpp +++ b/linden/indra/newview/llinventorybridge.cpp | |||
@@ -3107,7 +3107,27 @@ void LLNotecardBridge::buildContextMenu(LLMenuGL& menu, U32 flags) | |||
3107 | } | 3107 | } |
3108 | items.push_back(std::string("Edit WindLight Settings")); | 3108 | items.push_back(std::string("Edit WindLight Settings")); |
3109 | } | 3109 | } |
3110 | else | ||
3111 | { | ||
3112 | items.push_back(std::string("Open")); | ||
3113 | } | ||
3110 | items.push_back(std::string("Properties")); | 3114 | items.push_back(std::string("Properties")); |
3115 | |||
3116 | // RLVa stuff copied from LLInvFVBridge::buildContextMenu | ||
3117 | // [RLVa:KB] - Checked: 2009-10-13 (RLVa-1.0.5c) | Modified: RLVa-1.0.5c | ||
3118 | if (rlv_handler_t::isEnabled()) | ||
3119 | { | ||
3120 | LLInventoryObject* pItem = (mInventoryPanel->getModel()) ? mInventoryPanel->getModel()->getObject(mUUID) : NULL; | ||
3121 | if ( (pItem) && | ||
3122 | ( ((LLAssetType::AT_NOTECARD == pItem->getType()) && (gRlvHandler.hasBehaviour(RLV_BHVR_VIEWNOTE))) || | ||
3123 | ((LLAssetType::AT_LSL_TEXT == pItem->getType()) && (gRlvHandler.hasBehaviour(RLV_BHVR_VIEWSCRIPT))) || | ||
3124 | ((LLAssetType::AT_NOTECARD == pItem->getType()) && (gRlvHandler.hasBehaviour(RLV_BHVR_VIEWTEXTURE))) ) ) | ||
3125 | { | ||
3126 | disabled_items.push_back(std::string("Open")); | ||
3127 | } | ||
3128 | } | ||
3129 | // [/RLVa:KB] | ||
3130 | |||
3111 | getClipboardEntries(true, items, disabled_items, flags); | 3131 | getClipboardEntries(true, items, disabled_items, flags); |
3112 | } | 3132 | } |
3113 | hideContextEntries(menu, items, disabled_items); | 3133 | hideContextEntries(menu, items, disabled_items); |