summaryrefslogtreecommitdiff
path: root/indra/newview/llinventoryfunctions.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2014-11-03 13:18:06 -0800
committerMerov Linden <merov@lindenlab.com>2014-11-03 13:18:06 -0800
commit828f47892151737bd5afe39b19c83d2b04fe9192 (patch)
tree3965014c65eb0c4309e7362e7307f7898099fb89 /indra/newview/llinventoryfunctions.cpp
parent0291b82f94533a1c1471ce8deedd13337273aa1f (diff)
DD-263 : Update the count on hand on SLM in various situation where stock count changes (activate, drag/drop, associate, etc...)
Diffstat (limited to 'indra/newview/llinventoryfunctions.cpp')
-rwxr-xr-xindra/newview/llinventoryfunctions.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp
index 1ca658ebd2..ac1efa5471 100755
--- a/indra/newview/llinventoryfunctions.cpp
+++ b/indra/newview/llinventoryfunctions.cpp
@@ -177,6 +177,11 @@ void update_marketplace_category(const LLUUID& cur_uuid, bool perform_consistenc
}
}
+ // Check if the count on hand needs to be updated on SLM
+ if (compute_stock_count(listing_uuid) != LLMarketplaceData::instance().getCountOnHand(listing_uuid))
+ {
+ LLMarketplaceData::instance().updateCountOnHand(listing_uuid);
+ }
// Update all descendents starting from the listing root
update_marketplace_folder_hierarchy(listing_uuid);
}