diff options
author | Merov Linden <merov@lindenlab.com> | 2014-10-21 21:46:16 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2014-10-21 21:46:16 -0700 |
commit | f99dbd9be0f631ee9135ac89d8322c359711d626 (patch) | |
tree | b4e6611debc3020057f580b7eaaebfe4fd201bdf /indra/newview/llmarketplacefunctions.cpp | |
parent | eeb5fb382bdb45c4c886a113506b777e85cbf4e2 (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-x | indra/newview/llmarketplacefunctions.cpp | 11 |
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) { |