diff options
| author | Merov Linden <merov@lindenlab.com> | 2015-06-06 20:23:01 -0700 | 
|---|---|---|
| committer | Merov Linden <merov@lindenlab.com> | 2015-06-06 20:23:01 -0700 | 
| commit | b0e75cc153d6ec18d8987a5322767b548f29926f (patch) | |
| tree | 4a11b46a0bbf7a5b67f3794cb00d4361fc8099fe /indra | |
| parent | e8dce624e4633b3861567aa68d23a5a40b52c94d (diff) | |
DD-416 : Unlist a listed listing that becomes devoid of any item
Diffstat (limited to 'indra')
| -rwxr-xr-x | indra/newview/llinventoryfunctions.cpp | 5 | 
1 files changed, 5 insertions, 0 deletions
| 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 | 
