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
Paul ProductEngine 2012-04-12 18:46:27 +03:00
parent 002c9b3f3d
commit b57a6186a2
1 changed files with 5 additions and 0 deletions

View File

@ -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)