SH-4128 WIP - misc cleanup
parent
eb88e4d378
commit
d73588eadd
|
|
@ -1178,11 +1178,11 @@ void LLInventoryModel::deleteObject(const LLUUID& id)
|
|||
mParentChildCategoryTree.erase(id);
|
||||
}
|
||||
addChangedMask(LLInventoryObserver::REMOVE, id);
|
||||
obj = NULL; // delete obj
|
||||
|
||||
|
||||
// Can't have links to links, so there's no need for this update
|
||||
// if the item removed is a link.
|
||||
bool is_link_type = obj->getIsLinkType();
|
||||
obj = NULL; // delete obj
|
||||
if (!is_link_type)
|
||||
{
|
||||
updateLinkedObjectsFromPurge(id);
|
||||
|
|
|
|||
|
|
@ -1113,7 +1113,7 @@ void LLPanelEditWearable::saveChanges(bool force_save_as)
|
|||
LLAssetType::AT_LINK,
|
||||
NULL);
|
||||
// Remove old link
|
||||
remove_inventory_item(link_item->getUUID());
|
||||
remove_inventory_item(link_item->getUUID(), NULL);
|
||||
}
|
||||
gAgentWearables.saveWearable(mWearablePtr->getType(), index, TRUE, new_name);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1276,7 +1276,7 @@ void remove_inventory_item(
|
|||
}
|
||||
else
|
||||
{
|
||||
llwarns << "remove_inventory_item called for nonexistent item " << item_id << llendl;
|
||||
llwarns << "remove_inventory_item called for invalid or nonexistent item " << item_id << llendl;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue