summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2014-07-25 17:58:54 -0700
committerMerov Linden <merov@lindenlab.com>2014-07-25 17:58:54 -0700
commitbd5da258ea4cd5557bc79f29b0034cf666d0f652 (patch)
tree0a536362f895e1a8e166cea61af83e4549db1cfa /indra/newview
parent9c04a5bfbb56f2deb755da11ef261aad6491a46b (diff)
DD-128 : Fixed. Some confirmations are for active listings only.
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/llinventoryfunctions.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp
index f009a6f7dd..0fd7eb067c 100755
--- a/indra/newview/llinventoryfunctions.cpp
+++ b/indra/newview/llinventoryfunctions.cpp
@@ -1951,24 +1951,25 @@ void LLInventoryAction::doToSelected(LLInventoryModel* model, LLFolderView* root
}
if (set_iter != selected_items.end())
{
- if ((("cut" == action) || ("delete" == action)) && (LLMarketplaceData::instance().isListed(viewModel->getUUID()) || LLMarketplaceData::instance().isVersionFolder(viewModel->getUUID())))
- {
- // Cut or delete of the active version folder or listing folder itself will unlist the listing so ask that question specifically
- LLNotificationsUtil::add("ConfirmMerchantUnlist", LLSD(), LLSD(), boost::bind(&LLInventoryAction::callback_doToSelected, _1, _2, model, root, action));
- return;
- }
- else if ("open" == action)
+ if ("open" == action)
{
if (get_can_item_be_worn(viewModel->getUUID()))
{
- // Wearing an object from an active listing is verbotten
+ // Wearing an object from any listing, active or not, is verbotten
LLNotificationsUtil::add("AlertMerchantListingCannotWear");
return;
}
- // Note: we do not prompt for active change when opening items (e.g. textures or note cards) on the marketplace...
+ // Note: we do not prompt for change when opening items (e.g. textures or note cards) on the marketplace...
}
- else
+ else if (LLMarketplaceData::instance().isInActiveFolder(viewModel->getUUID()))
{
+ // If item is in active listing, further confirmation is required
+ if ((("cut" == action) || ("delete" == action)) && (LLMarketplaceData::instance().isListed(viewModel->getUUID()) || LLMarketplaceData::instance().isVersionFolder(viewModel->getUUID())))
+ {
+ // Cut or delete of the active version folder or listing folder itself will unlist the listing so ask that question specifically
+ LLNotificationsUtil::add("ConfirmMerchantUnlist", LLSD(), LLSD(), boost::bind(&LLInventoryAction::callback_doToSelected, _1, _2, model, root, action));
+ return;
+ }
// Any other case will simply modify but not unlist a listing
LLNotificationsUtil::add("ConfirmMerchantActiveChange", LLSD(), LLSD(), boost::bind(&LLInventoryAction::callback_doToSelected, _1, _2, model, root, action));
return;