summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2014-12-29 19:03:18 +0200
committerandreykproductengine <akleshchev@productengine.com>2014-12-29 19:03:18 +0200
commitc7707a10c59199740c57d8eadcab7d9b1c2026f1 (patch)
tree0b15771b55d38b014e35312e6b5b6c50d2a2a9ed /indra
parent7cf015425677c1112d5c8ec90f77e34320ad1009 (diff)
MAINT-1998 FIXED 'Open' menu item should be disabled if agent has no copy permissions.
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llpanelobjectinventory.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llpanelobjectinventory.cpp b/indra/newview/llpanelobjectinventory.cpp
index bf15f56b44..5fd575ee8b 100755
--- a/indra/newview/llpanelobjectinventory.cpp
+++ b/indra/newview/llpanelobjectinventory.cpp
@@ -689,6 +689,10 @@ void LLTaskInvFVBridge::buildContextMenu(LLMenuGL& menu, U32 flags)
else if (canOpenItem())
{
items.push_back(std::string("Task Open"));
+ if (!isItemCopyable())
+ {
+ disabled_items.push_back(std::string("Task Open"));
+ }
}
items.push_back(std::string("Task Properties"));
if(isItemRenameable())