From 03a65bcb2ce30552d8e5b3233dd1d2186696a141 Mon Sep 17 00:00:00 2001 From: Hazim Gazov Date: Thu, 13 May 2010 08:45:53 -0300 Subject: [PATCH] whoops, forgot to actually create the orphaned items category --- indra/newview/lllocalinventory.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/indra/newview/lllocalinventory.cpp b/indra/newview/lllocalinventory.cpp index d3c8ba67f..b3b31d25a 100644 --- a/indra/newview/lllocalinventory.cpp +++ b/indra/newview/lllocalinventory.cpp @@ -205,6 +205,12 @@ void LLLocalInventory::loadInvCache(std::string filename) gInventory.accountForUpdate(container_update); gInventory.updateCategory(container); gInventory.notifyObservers(); + + LLInventoryModel::update_map_t orphaned_items_update; + ++orphaned_items_update[orphaned_items->getParentUUID()]; + gInventory.accountForUpdate(orphaned_items_update); + gInventory.updateCategory(orphaned_items); + gInventory.notifyObservers(); // Add all categories LLInventoryModel::cat_array_t::iterator cat_iter = cats.begin();