merge
commit
baa79ad5ee
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -29,12 +29,14 @@
|
|||
height="75"
|
||||
layout="topleft"
|
||||
left="0"
|
||||
mouse_opaque="false"
|
||||
orientation="horizontal"
|
||||
top="100">
|
||||
<!-- outer layout_panels center the inner one -->
|
||||
<layout_panel
|
||||
name="left_bookend"
|
||||
width="0"
|
||||
mouse_opaque="false"
|
||||
layout="topleft"
|
||||
user_resize="false" />
|
||||
<layout_panel
|
||||
|
|
@ -42,6 +44,7 @@
|
|||
auto_resize="false"
|
||||
user_resize="false"
|
||||
layout="topleft"
|
||||
mouse_opaque="false"
|
||||
min_width="22"
|
||||
width="22"
|
||||
top="4">
|
||||
|
|
|
|||
Loading…
Reference in New Issue