summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2014-06-09 15:20:07 -0700
committerMerov Linden <merov@lindenlab.com>2014-06-09 15:20:07 -0700
commit4083e972ccf238cd02d60da2af88855f25ed7b1f (patch)
tree68993ee208a63a39aa6617c09e25790802cea120 /indra/newview
parent824c21ef6e092464d1a6c7a46625adc53499bc5b (diff)
DD-97 : When clearing the version folder of a record, force activation (listed) status to false at the same time, avoiding confusing (and eventually wrong) double call to updateSLMListing
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/llinventoryfunctions.cpp1
-rwxr-xr-xindra/newview/llmarketplacefunctions.cpp3
2 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp
index b17e9551e5..606f95560b 100755
--- a/indra/newview/llinventoryfunctions.cpp
+++ b/indra/newview/llinventoryfunctions.cpp
@@ -167,7 +167,6 @@ void update_marketplace_category(const LLUUID& cur_uuid, bool perform_consistenc
{
LL_INFOS("SLM") << "Unlist as the version folder is not under the listing folder anymore!!" << LL_ENDL;
LLMarketplaceData::instance().setVersionFolder(listing_uuid, LLUUID::null);
- LLMarketplaceData::instance().activateListing(listing_uuid, false);
}
}
diff --git a/indra/newview/llmarketplacefunctions.cpp b/indra/newview/llmarketplacefunctions.cpp
index d8f78ce81a..3b68c12d11 100755
--- a/indra/newview/llmarketplacefunctions.cpp
+++ b/indra/newview/llmarketplacefunctions.cpp
@@ -1285,7 +1285,8 @@ bool LLMarketplaceData::setVersionFolder(const LLUUID& folder_id, const LLUUID&
return false;
}
- bool is_listed = getActivationState(listing_uuid);
+ // Note: if the version_id is cleared, we need to unlist the listing, otherwise, state unchanged
+ bool is_listed = (version_id.isNull() ? false : getActivationState(listing_uuid));
// Post the listing update request to SLM
updateSLMListing(listing_uuid, listing_id, version_id, is_listed);