diff options
author | andreykproductengine <akleshchev@productengine.com> | 2014-12-29 19:03:18 +0200 |
---|---|---|
committer | andreykproductengine <akleshchev@productengine.com> | 2014-12-29 19:03:18 +0200 |
commit | c7707a10c59199740c57d8eadcab7d9b1c2026f1 (patch) | |
tree | 0b15771b55d38b014e35312e6b5b6c50d2a2a9ed /indra | |
parent | 7cf015425677c1112d5c8ec90f77e34320ad1009 (diff) |
MAINT-1998 FIXED 'Open' menu item should be disabled if agent has no copy permissions.
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/newview/llpanelobjectinventory.cpp | 4 |
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()) |