diff options
author | Merov Linden <merov@lindenlab.com> | 2015-03-28 14:32:50 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2015-03-28 14:32:50 -0700 |
commit | 84b3899af26bdc8995641e3b89882fab4a79add1 (patch) | |
tree | 712e9c06aeb34f3f912a8f120a73a72d9e8b0aa7 | |
parent | 5160aab492981eae5565c414dbe87070ea04f42d (diff) |
DD-291 : Trigger a GET /listing when receiving a category update
-rwxr-xr-x | indra/newview/llinventorymodel.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp index 1cfa0a9ebf..b44bd38841 100755 --- a/indra/newview/llinventorymodel.cpp +++ b/indra/newview/llinventorymodel.cpp @@ -41,6 +41,7 @@ #include "llinventoryobserver.h" #include "llinventorypanel.h" #include "llnotificationsutil.h" +#include "llmarketplacefunctions.h" #include "llwindow.h" #include "llviewercontrol.h" #include "llpreview.h" @@ -3059,6 +3060,15 @@ void LLInventoryModel::processBulkUpdateInventory(LLMessageSystem* msg, void**) LL_DEBUGS("Inventory") << "unpacked folder '" << tfolder->getName() << "' (" << tfolder->getUUID() << ") in " << tfolder->getParentUUID() << LL_ENDL; + + // If the parent folder is a listing folder, we also need to update the SLM data + if (LLMarketplaceData::instance().isListed(tfolder->getParentUUID())) + { + // Trigger an SLM listing update + S32 listing_id = LLMarketplaceData::instance().getListingID(tfolder->getParentUUID()); + LLMarketplaceData::instance().getListing(listing_id); + } + if(tfolder->getUUID().notNull()) { folders.push_back(tfolder); |