From 349497ce56e6338a18e515c30c1af5aca84c448d Mon Sep 17 00:00:00 2001 From: Merov Linden Date: Thu, 14 Aug 2014 21:39:36 -0700 Subject: DD-118 : Disable Edit Listing menu option if no version folder on a listing --- indra/newview/llinventorybridge.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'indra/newview/llinventorybridge.cpp') 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")); } -- cgit v1.2.3