summaryrefslogtreecommitdiff
path: root/indra/newview/llmarketplacefunctions.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2014-03-14 13:52:42 -0700
committerMerov Linden <merov@lindenlab.com>2014-03-14 13:52:42 -0700
commitf93f860e9b565213089f945ee0d88dedf3dcd9c0 (patch)
treefe1ad366ae8be0f45bce5bf1de2eafabaa7e7940 /indra/newview/llmarketplacefunctions.cpp
parent705d4182c8a84728e7f00cf48110c8f9720e4c29 (diff)
DD-43, DD-44 : implement update_marketplace_category() and get it called swhen appropriate
Diffstat (limited to 'indra/newview/llmarketplacefunctions.cpp')
-rwxr-xr-xindra/newview/llmarketplacefunctions.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llmarketplacefunctions.cpp b/indra/newview/llmarketplacefunctions.cpp
index b39889c721..6f35cc217d 100755
--- a/indra/newview/llmarketplacefunctions.cpp
+++ b/indra/newview/llmarketplacefunctions.cpp
@@ -30,6 +30,7 @@
#include "llagent.h"
#include "llhttpclient.h"
+#include "llinventoryfunctions.h"
#include "llsdserialize.h"
#include "lltimer.h"
#include "lltrans.h"
@@ -596,6 +597,7 @@ bool LLMarketplaceData::setListingID(const LLUUID& folder_id, std::string listin
else
{
(it->second).mListingId = listing_id;
+ update_marketplace_category(folder_id);
return true;
}
}
@@ -609,6 +611,7 @@ bool LLMarketplaceData::setVersionFolderID(const LLUUID& folder_id, const LLUUID
else
{
(it->second).mActiveVersionFolderId = version_id;
+ update_marketplace_category(folder_id);
return true;
}
}
@@ -622,6 +625,7 @@ bool LLMarketplaceData::setActivation(const LLUUID& folder_id, bool activate)
else
{
(it->second).mIsActive = activate;
+ update_marketplace_category(folder_id);
return true;
}
}
@@ -631,12 +635,15 @@ void LLMarketplaceData::addTestItem(const LLUUID& folder_id)
{
llinfos << "Merov : addTestItem, id = " << folder_id << llendl;
mMarketplaceItems[folder_id] = LLMarketplaceTuple(folder_id);
+ update_marketplace_category(folder_id);
}
void LLMarketplaceData::addTestItem(const LLUUID& folder_id, const LLUUID& version_id)
{
llinfos << "Merov : addTestItem, id = " << folder_id << ", version = " << version_id << llendl;
mMarketplaceItems[folder_id] = LLMarketplaceTuple(folder_id);
setVersionFolderID(folder_id, version_id);
+ update_marketplace_category(folder_id);
+ update_marketplace_category(version_id);
}