summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorybridge.cpp
diff options
context:
space:
mode:
authorangela <angela@lindenlab.com>2010-03-03 13:52:14 +0800
committerangela <angela@lindenlab.com>2010-03-03 13:52:14 +0800
commit5777dfaae6268dffee83d7a457c024b1a89f81ff (patch)
tree063583a1f9f7441356814be5891e6a7bcc61b9d4 /indra/newview/llinventorybridge.cpp
parent70cc2d6974d034055e177a16c9fccc3b7b5e7c63 (diff)
parent3c443a9287f5827316f96a14316f53e3919c57ac (diff)
merge
Diffstat (limited to 'indra/newview/llinventorybridge.cpp')
-rw-r--r--indra/newview/llinventorybridge.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp
index c4cf76fde1..27a40c6ba0 100644
--- a/indra/newview/llinventorybridge.cpp
+++ b/indra/newview/llinventorybridge.cpp
@@ -31,6 +31,9 @@
*/
#include "llviewerprecompiledheaders.h"
+// external projects
+#include "lltransfersourceasset.h"
+
#include "llinventorybridge.h"
#include "llagent.h"
@@ -583,7 +586,16 @@ void LLInvFVBridge::getClipboardEntries(bool show_asset_id,
if (show_asset_id)
{
items.push_back(std::string("Copy Asset UUID"));
- if ( (! ( isItemPermissive() || gAgent.isGodlike() ) )
+
+ bool is_asset_knowable = false;
+
+ LLViewerInventoryItem* inv_item = gInventory.getItem(mUUID);
+ if (inv_item)
+ {
+ is_asset_knowable = is_asset_id_knowable(inv_item->getType());
+ }
+ if ( !is_asset_knowable // disable menu item for Inventory items with unknown asset. EXT-5308
+ || (! ( isItemPermissive() || gAgent.isGodlike() ) )
|| (flags & FIRST_SELECTED_ITEM) == 0)
{
disabled_items.push_back(std::string("Copy Asset UUID"));