summaryrefslogtreecommitdiff
path: root/indra/newview/llsidepaneliteminfo.cpp
diff options
context:
space:
mode:
authorVadim Savchuk <vsavchuk@productengine.com>2009-12-03 17:10:43 +0200
committerVadim Savchuk <vsavchuk@productengine.com>2009-12-03 17:10:43 +0200
commitf838c5d3ae25e90dba80817f98b50df3e58a4010 (patch)
tree0c80900206ac15dad0e923264a844ae002d99251 /indra/newview/llsidepaneliteminfo.cpp
parent3b05656ba1f698535453622267996df14fef3dde (diff)
parent67f11add9c2e05e1c86e30c44c94ee1b7d9205d0 (diff)
Merge from default branch.
--HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llsidepaneliteminfo.cpp')
-rw-r--r--indra/newview/llsidepaneliteminfo.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llsidepaneliteminfo.cpp b/indra/newview/llsidepaneliteminfo.cpp
index 5081c33f8e..ad6428e515 100644
--- a/indra/newview/llsidepaneliteminfo.cpp
+++ b/indra/newview/llsidepaneliteminfo.cpp
@@ -159,6 +159,7 @@ void LLSidepanelItemInfo::refresh()
setIsEditing(FALSE);
return;
}
+ mEditBtn->setEnabled(FALSE);
}
if (!getIsEditing())
@@ -868,7 +869,11 @@ void LLSidepanelItemInfo::updateVerbs()
const LLPermissions& perm = item->getPermissions();
BOOL is_modifiable = gAgent.allowOperation(PERM_MODIFY, perm,
GP_OBJECT_MANIPULATE);
- mEditBtn->setEnabled(is_modifiable);
+
+ const LLUUID trash_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_TRASH);
+ bool item_in_trash = item->getUUID() == trash_id || gInventory.isObjectDescendentOf(item->getUUID(), trash_id);
+ mEditBtn->setEnabled(is_modifiable && !item_in_trash);
+
}
}