From b0e75cc153d6ec18d8987a5322767b548f29926f Mon Sep 17 00:00:00 2001 From: Merov Linden Date: Sat, 6 Jun 2015 20:23:01 -0700 Subject: DD-416 : Unlist a listed listing that becomes devoid of any item --- indra/newview/llinventoryfunctions.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'indra/newview') diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp index d402590e51..4feb697af9 100755 --- a/indra/newview/llinventoryfunctions.cpp +++ b/indra/newview/llinventoryfunctions.cpp @@ -287,6 +287,11 @@ void update_marketplace_category(const LLUUID& cur_uuid, bool perform_consistenc LL_INFOS("SLM") << "Unlist and clear version folder as the version folder is not at the right place anymore!!" << LL_ENDL; LLMarketplaceData::instance().setVersionFolder(listing_uuid, LLUUID::null); } + else if (version_folder_uuid.notNull() && (count_descendants_items(version_folder_uuid) == 0)) + { + LL_INFOS("SLM") << "Unlist as the version folder is empty of any item!!" << LL_ENDL; + LLMarketplaceData::instance().activateListing(listing_uuid, false); + } } // Check if the count on hand needs to be updated on SLM -- cgit v1.2.3