summaryrefslogtreecommitdiff
path: root/indra/newview/llmarketplacefunctions.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2014-10-21 21:46:16 -0700
committerMerov Linden <merov@lindenlab.com>2014-10-21 21:46:16 -0700
commitf99dbd9be0f631ee9135ac89d8322c359711d626 (patch)
treeb4e6611debc3020057f580b7eaaebfe4fd201bdf /indra/newview/llmarketplacefunctions.cpp
parenteeb5fb382bdb45c4c886a113506b777e85cbf4e2 (diff)
DD-224 : WIP : Add a deleteListing method, call SLM_UPDATE_FOLDER notification if state is deleted
Diffstat (limited to 'indra/newview/llmarketplacefunctions.cpp')
-rwxr-xr-xindra/newview/llmarketplacefunctions.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llmarketplacefunctions.cpp b/indra/newview/llmarketplacefunctions.cpp
index 4bf0eac03b..5e4615dbda 100755
--- a/indra/newview/llmarketplacefunctions.cpp
+++ b/indra/newview/llmarketplacefunctions.cpp
@@ -1487,6 +1487,17 @@ bool LLMarketplaceData::deleteListing(const LLUUID& folder_id, bool update_slm)
return true;
}
+bool LLMarketplaceData::deleteListing(S32 listing_id)
+{
+ if (listing_id == 0)
+ {
+ return false;
+ }
+
+ LLUUID folder_id = getListingFolder(listing_id);
+ return deleteListing(folder_id);
+}
+
// Accessors
bool LLMarketplaceData::getActivationState(const LLUUID& folder_id)
{