diff options
author | Merov Linden <merov@lindenlab.com> | 2014-08-25 11:30:46 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2014-08-25 11:30:46 -0700 |
commit | 2631d6f81717a0f6be0e5adba58ddddcd826b721 (patch) | |
tree | 220ac9c07856b3eff27b871ae8519a34f9649d55 /indra/newview/llinventoryfunctions.cpp | |
parent | 85ec32c05e3474e55db142489f91e978df319951 (diff) |
DD-105 : WIP : Use one single mechanism for marking folders being updated by SLM
Diffstat (limited to 'indra/newview/llinventoryfunctions.cpp')
-rwxr-xr-x | indra/newview/llinventoryfunctions.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp index 8833d72dfa..55333923f9 100755 --- a/indra/newview/llinventoryfunctions.cpp +++ b/indra/newview/llinventoryfunctions.cpp @@ -175,8 +175,17 @@ void update_marketplace_category(const LLUUID& cur_uuid, bool perform_consistenc // Update all descendents starting from the listing root update_marketplace_folder_hierarchy(listing_uuid); } - else if (depth < 0) + else if (depth == 0) { + // If this is the marketplace listings root itself, update all descendents + if (gInventory.getCategory(cur_uuid)) + { + update_marketplace_folder_hierarchy(cur_uuid); + } + } + else + { + // If the folder is outside the marletplace listings root, clear its SLM data if needs be if (perform_consistency_enforcement && LLMarketplaceData::instance().isListed(cur_uuid)) { LL_INFOS("SLM") << "Disassociate as the listing folder is not under the marketplace folder anymore!!" << LL_ENDL; |