diff options
author | Merov Linden <merov@lindenlab.com> | 2014-06-03 19:46:33 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2014-06-03 19:46:33 -0700 |
commit | 86d75052f65149da6bbe1ade5ea28b6f01aaba17 (patch) | |
tree | f370706050f60f04273a28d2bf733d80c74e6523 /indra/newview/llmarketplacefunctions.cpp | |
parent | d5cd32a2a82473d504c04b00eb105290e5d61d08 (diff) |
DD-84 : Fix all active listing modification actions. Add specific message when listing will unlist. Make update skip consistency check when called from internal level (not public API).
Diffstat (limited to 'indra/newview/llmarketplacefunctions.cpp')
-rwxr-xr-x | indra/newview/llmarketplacefunctions.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/indra/newview/llmarketplacefunctions.cpp b/indra/newview/llmarketplacefunctions.cpp index f6a0a28735..d3d529cedb 100755 --- a/indra/newview/llmarketplacefunctions.cpp +++ b/indra/newview/llmarketplacefunctions.cpp @@ -1318,7 +1318,7 @@ bool LLMarketplaceData::addListing(const LLUUID& folder_id, S32 listing_id, cons } mMarketplaceItems[folder_id] = LLMarketplaceTuple(folder_id, listing_id, version_id, is_listed); - update_marketplace_category(folder_id); + update_marketplace_category(folder_id, true); gInventory.notifyObservers(); return true; } @@ -1334,7 +1334,7 @@ bool LLMarketplaceData::deleteListing(const LLUUID& folder_id, bool update_slm) if (update_slm) { - update_marketplace_category(folder_id); + update_marketplace_category(folder_id, true); gInventory.notifyObservers(); } return true; @@ -1422,11 +1422,9 @@ bool LLMarketplaceData::isInActiveFolder(const LLUUID& obj_id) { S32 depth = depth_nesting_in_marketplace(obj_id); LLUUID listing_uuid = nested_parent_id(obj_id, depth); - // *TODO: use true activation status once SLM is in decent shape again - //bool active = getActivationState(listing_uuid); Hack waiting for SLM to allow activation again... - bool active = true; + bool active = getActivationState(listing_uuid); LLUUID version_uuid = getVersionFolder(listing_uuid); - return (active && gInventory.isObjectDescendentOf(obj_id, version_uuid)); + return (active && ((obj_id == listing_uuid) || (obj_id == version_uuid) || gInventory.isObjectDescendentOf(obj_id, version_uuid))); } // Private Modifiers @@ -1440,7 +1438,7 @@ bool LLMarketplaceData::setListingID(const LLUUID& folder_id, S32 listing_id) (it->second).mListingId = listing_id; - update_marketplace_category(folder_id); + update_marketplace_category(folder_id, true); gInventory.notifyObservers(); return true; } @@ -1461,8 +1459,8 @@ bool LLMarketplaceData::setVersionFolderID(const LLUUID& folder_id, const LLUUID (it->second).mVersionFolderId = version_id; - update_marketplace_category(old_version_id); - update_marketplace_category(version_id); + update_marketplace_category(old_version_id, true); + update_marketplace_category(version_id, true); gInventory.notifyObservers(); return true; } @@ -1477,7 +1475,7 @@ bool LLMarketplaceData::setActivationState(const LLUUID& folder_id, bool activat (it->second).mIsActive = activate; - update_marketplace_category((it->second).mListingFolderId); + update_marketplace_category((it->second).mListingFolderId, true); gInventory.notifyObservers(); return true; } |