diff options
author | callum <none@none> | 2009-12-16 14:34:13 -0800 |
---|---|---|
committer | callum <none@none> | 2009-12-16 14:34:13 -0800 |
commit | 17ea8bfa9ea69b1022d0f8754732c479fe5a7f6b (patch) | |
tree | c2b18373bad5e9856cf3edf226783c8767230559 /indra/newview/llsidepaneliteminfo.cpp | |
parent | 828694987cce58b88143e3a2c5bd55a10e6afc24 (diff) | |
parent | d3ca545687945054c666359e78ada94949732205 (diff) |
Merge with tip
Diffstat (limited to 'indra/newview/llsidepaneliteminfo.cpp')
-rw-r--r-- | indra/newview/llsidepaneliteminfo.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/indra/newview/llsidepaneliteminfo.cpp b/indra/newview/llsidepaneliteminfo.cpp index 25518d87d6..1965e634b6 100644 --- a/indra/newview/llsidepaneliteminfo.cpp +++ b/indra/newview/llsidepaneliteminfo.cpp @@ -172,7 +172,7 @@ void LLSidepanelItemInfo::refresh() } } - if (!getIsEditing()) + if (!getIsEditing() || !item) { const std::string no_item_names[]={ "LabelItemName", @@ -261,18 +261,6 @@ void LLSidepanelItemInfo::refreshFromItem(LLInventoryItem* item) GP_OBJECT_MANIPULATE) && is_obj_modify && is_complete; - const LLUUID trash_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_TRASH); - bool item_in_trash = item->getUUID() == trash_id || gInventory.isObjectDescendentOf(item->getUUID(), trash_id); - - if (is_modifiable && !item_in_trash) - { - setIsEditing(TRUE); - } - else - { - setIsEditing(FALSE); - } - childSetEnabled("LabelItemNameTitle",TRUE); childSetEnabled("LabelItemName",is_modifiable && !is_calling_card); // for now, don't allow rename of calling cards childSetText("LabelItemName",item->getName()); |