summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorybridge.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2015-03-18 17:06:18 -0700
committerMerov Linden <merov@lindenlab.com>2015-03-18 17:06:18 -0700
commitb4d22741a6118719d45f278ed64f2c4635f0058e (patch)
tree0025dc54a2150d5b8f896d53908e22841b4db3d9 /indra/newview/llinventorybridge.cpp
parent1dd5c338d2726cc6c0f717e64d52c051d19b9732 (diff)
DD-337 : Validate the version folder before setting it and show error dialog if error
Diffstat (limited to 'indra/newview/llinventorybridge.cpp')
-rwxr-xr-xindra/newview/llinventorybridge.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp
index 4d9bfa20bb..d7a5594bb1 100755
--- a/indra/newview/llinventorybridge.cpp
+++ b/indra/newview/llinventorybridge.cpp
@@ -3113,7 +3113,17 @@ void LLFolderBridge::performAction(LLInventoryModel* model, std::string action)
if (depth_nesting_in_marketplace(mUUID) == 2)
{
LLInventoryCategory* category = gInventory.getCategory(mUUID);
- LLMarketplaceData::instance().setVersionFolder(category->getParentUUID(), mUUID);
+ mMessage = "";
+ if (!validate_marketplacelistings(category,boost::bind(&LLFolderBridge::gatherMessage, this, _1, _2, _3),false,2))
+ {
+ LLSD subs;
+ subs["[ERROR_CODE]"] = mMessage;
+ LLNotificationsUtil::add("MerchantFolderActivationFailed", subs);
+ }
+ else
+ {
+ LLMarketplaceData::instance().setVersionFolder(category->getParentUUID(), mUUID);
+ }
}
return;
}