diff options
| author | Yuri Chebotarev <ychebotarev@productengine.com> | 2010-01-04 14:58:48 +0200 |
|---|---|---|
| committer | Yuri Chebotarev <ychebotarev@productengine.com> | 2010-01-04 14:58:48 +0200 |
| commit | dcf144eae0b52c24168bde4d1cfedeb275a9777a (patch) | |
| tree | f83fecbb7c6a8815919325b7aff74634b462ed5a /indra/newview/llsidepaneliteminfo.cpp | |
| parent | 8288b33c83abde3adaec2638c9e8d1a164d4138e (diff) | |
| parent | 516e2674f54d400c30bf548ea1e9b0a268bd929f (diff) | |
merge
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llsidepaneliteminfo.cpp')
| -rw-r--r-- | indra/newview/llsidepaneliteminfo.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llsidepaneliteminfo.cpp b/indra/newview/llsidepaneliteminfo.cpp index 1965e634b6..814508daa9 100644 --- a/indra/newview/llsidepaneliteminfo.cpp +++ b/indra/newview/llsidepaneliteminfo.cpp @@ -168,11 +168,13 @@ void LLSidepanelItemInfo::refresh() if (getIsEditing()) { setIsEditing(FALSE); - return; } } + + const LLUUID trash_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_TRASH); + bool is_editable = item && (item->getUUID() != trash_id) && !gInventory.isObjectDescendentOf(item->getUUID(), trash_id); - if (!getIsEditing() || !item) + if (!getIsEditing() || !is_editable) { const std::string no_item_names[]={ "LabelItemName", @@ -210,7 +212,7 @@ void LLSidepanelItemInfo::refresh() } } - if (!item) + if (!is_editable) { const std::string no_edit_mode_names[]={ "BtnCreator", |
