diff options
author | Paul ProductEngine <pguslisty@productengine.com> | 2012-04-12 18:46:27 +0300 |
---|---|---|
committer | Paul ProductEngine <pguslisty@productengine.com> | 2012-04-12 18:46:27 +0300 |
commit | b57a6186a2d68e3fecf3e46bced7543b074be90a (patch) | |
tree | 0f5fd7714320ae9b0805d289eff71e30b3b75af7 /indra | |
parent | 002c9b3f3d85f8d023c7abd41f0f2c834d3f17cc (diff) |
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.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llinventorymodel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp index a71b699fdd..33886c2e93 100644 --- a/indra/newview/llinventorymodel.cpp +++ b/indra/newview/llinventorymodel.cpp @@ -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) |