MAINT-841 FIXED ([PUBLIC]Folder "Lost and found" isn't cleaned)
- This happens if something was added to the category before it was initialized, so accountForUpdate didn't update descendent count and thus the category thinks it has fewer descendents than it actually has.meow-7.2.2
parent
002c9b3f3d
commit
b57a6186a2
|
|
@ -819,6 +819,11 @@ U32 LLInventoryModel::updateItem(const LLViewerInventoryItem* item)
|
|||
{
|
||||
parent_id = findCategoryUUIDForType(LLFolderType::FT_LOST_AND_FOUND);
|
||||
new_item->setParent(parent_id);
|
||||
LLInventoryModel::update_list_t update;
|
||||
LLInventoryModel::LLCategoryUpdate new_folder(parent_id, 1);
|
||||
update.push_back(new_folder);
|
||||
accountForUpdate(update);
|
||||
|
||||
}
|
||||
item_array_t* item_array = get_ptr_in_map(mParentChildItemTree, parent_id);
|
||||
if(item_array)
|
||||
|
|
|
|||
Loading…
Reference in New Issue