diff options
author | thickbrick | 2010-09-28 19:06:14 +0200 |
---|---|---|
committer | thickbrick | 2010-09-28 19:06:14 +0200 |
commit | 32cce392ac099676ea49b104abc8a6e69ae8b7fd (patch) | |
tree | b0cae8c39457530e00304e7471e9276864f03d61 /linden/indra | |
parent | Converted XUI files to unix line endings, again. (diff) | |
download | meta-impy-32cce392ac099676ea49b104abc8a6e69ae8b7fd.zip meta-impy-32cce392ac099676ea49b104abc8a6e69ae8b7fd.tar.gz meta-impy-32cce392ac099676ea49b104abc8a6e69ae8b7fd.tar.bz2 meta-impy-32cce392ac099676ea49b104abc8a6e69ae8b7fd.tar.xz |
Fix missing "Open" in context menu on notecards in inventory.
This was introduced in d9c9fbdd0d4c2638b3aab5b2db0f8cf6d48a928e
(windlight notecards)
Diffstat (limited to 'linden/indra')
-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); |