aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-09-29 16:17:30 -0700
committerMcCabe Maxsted2010-09-29 16:17:30 -0700
commit2d45a621125481f4fa0c5e9f03332db6b648948e (patch)
tree6173daaf68cef10ec5585371ab2348189f1bb085
parentMerge remote branch 'thickbrick/translate_fixes_b' into weekly (diff)
parentFix missing "Open" in context menu on notecards in inventory. (diff)
downloadmeta-impy-2d45a621125481f4fa0c5e9f03332db6b648948e.zip
meta-impy-2d45a621125481f4fa0c5e9f03332db6b648948e.tar.gz
meta-impy-2d45a621125481f4fa0c5e9f03332db6b648948e.tar.bz2
meta-impy-2d45a621125481f4fa0c5e9f03332db6b648948e.tar.xz
Merge remote branch 'thickbrick/weekly' into weekly
-rw-r--r--linden/indra/newview/llinventorybridge.cpp20
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);