summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorCallum Prentice <callum@lindenlab.com>2009-12-30 14:49:34 -0800
committerCallum Prentice <callum@lindenlab.com>2009-12-30 14:49:34 -0800
commit5c0ac6f4ae267d402733d3c2f30342a8aef48d4c (patch)
treee3c8636289707c220be829b90b405b74d7257550 /indra/newview
parent8d5532e78e420f4011fd0e9637c6d5371750fcd3 (diff)
parent11086c06365b8e383bde9abc96341449c72788ad (diff)
Merge with tip
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llsidepaneliteminfo.cpp8
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",