summaryrefslogtreecommitdiff
path: root/indra/newview/llinventoryobserver.cpp
diff options
context:
space:
mode:
authorKent Quirk <q@lindenlab.com>2010-06-17 11:37:21 -0400
committerKent Quirk <q@lindenlab.com>2010-06-17 11:37:21 -0400
commitb770415b6a2f52946eafb99800af7409b900cd8e (patch)
tree11c6e9bdeee80d486445ea301e97742c00cdff7a /indra/newview/llinventoryobserver.cpp
parentbe72a10a89f98a5c7c372ecee3d839be2031b80a (diff)
parent7cc006347822a70f36175dc2627814a0eaeb9c0a (diff)
Merge (and resolve conflict) from q/viewer-release
Diffstat (limited to 'indra/newview/llinventoryobserver.cpp')
-rw-r--r--indra/newview/llinventoryobserver.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llinventoryobserver.cpp b/indra/newview/llinventoryobserver.cpp
index bd35259670..0ac8fbcb15 100644
--- a/indra/newview/llinventoryobserver.cpp
+++ b/indra/newview/llinventoryobserver.cpp
@@ -308,7 +308,16 @@ void LLInventoryFetchItemsObserver::startFetch()
// assume it's agent inventory.
owner_id = gAgent.getID();
}
-
+
+ // Ignore categories since they're not items. We
+ // could also just add this to mComplete but not sure what the
+ // side-effects would be, so ignoring to be safe.
+ LLViewerInventoryCategory* cat = gInventory.getCategory(*it);
+ if (cat)
+ {
+ continue;
+ }
+
// It's incomplete, so put it on the incomplete container, and
// pack this on the message.
mIncomplete.push_back(*it);