summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorybridge.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2014-08-14 21:39:36 -0700
committerMerov Linden <merov@lindenlab.com>2014-08-14 21:39:36 -0700
commit349497ce56e6338a18e515c30c1af5aca84c448d (patch)
treea27f3cd8da8968904e9e1f2b5b1f1f2aed7833b7 /indra/newview/llinventorybridge.cpp
parent9bedc2ab3dc88e2958a31d8501c3291cb2d5d20e (diff)
DD-118 : Disable Edit Listing menu option if no version folder on a listing
Diffstat (limited to 'indra/newview/llinventorybridge.cpp')
-rwxr-xr-xindra/newview/llinventorybridge.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp
index 0b6fe3dfbc..3635a87881 100755
--- a/indra/newview/llinventorybridge.cpp
+++ b/indra/newview/llinventorybridge.cpp
@@ -941,7 +941,8 @@ void LLInvFVBridge::addMarketplaceContextMenuOptions(U32 flags,
// Options available at all levels on items and categories
items.push_back(std::string("Marketplace Edit Listing"));
LLUUID listing_folder_id = nested_parent_id(mUUID,depth);
- if (!LLMarketplaceData::instance().isListed(listing_folder_id))
+ LLUUID version_folder_id = LLMarketplaceData::instance().getVersionFolder(listing_folder_id);
+ if (!LLMarketplaceData::instance().isListed(listing_folder_id) || version_folder_id.isNull())
{
disabled_items.push_back(std::string("Marketplace Edit Listing"));
}