summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorymodel.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2013-11-15 13:33:31 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2013-11-15 13:33:31 -0500
commitc1f60e7f2fe1775d8ca5f79af23579ac8a1fd851 (patch)
treefbb062f2da95973aa6a7fbcdf5372fc7097aad5c /indra/newview/llinventorymodel.cpp
parent9fe7ec50e0cf4d743b05e335ee27d6fb7fbe37b7 (diff)
SH-4621 WIP
Diffstat (limited to 'indra/newview/llinventorymodel.cpp')
-rwxr-xr-xindra/newview/llinventorymodel.cpp28
1 files changed, 25 insertions, 3 deletions
diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp
index 1ad70492ca..3dbc1ae288 100755
--- a/indra/newview/llinventorymodel.cpp
+++ b/indra/newview/llinventorymodel.cpp
@@ -1467,6 +1467,19 @@ void LLInventoryModel::addChangedMask(U32 mask, const LLUUID& referent)
// (which is in the process of processing the list of items marked for change).
// This means the change may fail to be processed.
llwarns << "Adding changed mask within notify observers! Change will likely be lost." << llendl;
+ LLViewerInventoryItem *item = getItem(referent);
+ if (item)
+ {
+ llwarns << "Item " << item->getName() << llendl;
+ }
+ else
+ {
+ LLViewerInventoryCategory *cat = getCategory(referent);
+ if (cat)
+ {
+ llwarns << "Category " << cat->getName() << llendl;
+ }
+ }
}
mModifyMask |= mask;
@@ -2344,9 +2357,10 @@ void LLInventoryModel::buildParentChildMap()
// The inv tree is built.
mIsAgentInvUsable = true;
- llinfos << "Inventory initialized, notifying observers" << llendl;
- addChangedMask(LLInventoryObserver::ALL, LLUUID::null);
- notifyObservers();
+ // notifyObservers() has been moved to
+ // llstartup/idle_startup() after this func completes.
+ // Allows some system categories to be created before
+ // observers start firing.
}
}
@@ -2356,6 +2370,14 @@ void LLInventoryModel::buildParentChildMap()
}
}
+void LLInventoryModel::createCommonSystemCategories()
+{
+ gInventory.findCategoryUUIDForType(LLFolderType::FT_TRASH,true);
+ gInventory.findCategoryUUIDForType(LLFolderType::FT_FAVORITE,true);
+ gInventory.findCategoryUUIDForType(LLFolderType::FT_CALLINGCARD,true);
+ gInventory.findCategoryUUIDForType(LLFolderType::FT_MY_OUTFITS,true);
+}
+
struct LLUUIDAndName
{
LLUUIDAndName() {}