summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorybridge.cpp
diff options
context:
space:
mode:
authorLeslie Linden <leslie@lindenlab.com>2011-09-08 12:09:43 -0700
committerLeslie Linden <leslie@lindenlab.com>2011-09-08 12:09:43 -0700
commit4ad3676985fa6abbb764136f1ec658ddcf296058 (patch)
tree714abf1dea12501d62be43b74afb50d2a791bdf7 /indra/newview/llinventorybridge.cpp
parentea18429a2c3b76aee4293f0031b8b5d5a8ee9aba (diff)
Disable merchant outbox context menu
Diffstat (limited to 'indra/newview/llinventorybridge.cpp')
-rw-r--r--indra/newview/llinventorybridge.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp
index b4dac28595..a36aa3dedf 100644
--- a/indra/newview/llinventorybridge.cpp
+++ b/indra/newview/llinventorybridge.cpp
@@ -70,6 +70,9 @@
#include "llvoavatarself.h"
#include "llwearablelist.h"
+// Marketplace outbox current disabled
+#define ENABLE_MERCHANT_OUTBOX_CONTEXT_MENU 0 // keep in sync with ENABLE_INVENTORY_DISPLAY_OUTBOX, ENABLE_MERCHANT_OUTBOX_PANEL
+
typedef std::pair<LLUUID, LLUUID> two_uuids_t;
typedef std::list<two_uuids_t> two_uuids_list_t;
@@ -1060,6 +1063,7 @@ BOOL LLInvFVBridge::canShare() const
BOOL LLInvFVBridge::canListOnMarketplace() const
{
+#if ENABLE_MERCHANT_OUTBOX_CONTEXT_MENU
LLInventoryModel * model = getInventoryModel();
const LLViewerInventoryCategory * cat = model->getCategory(mUUID);
if (cat && LLFolderType::lookupIsProtectedType(cat->getPreferredType()))
@@ -1089,10 +1093,14 @@ BOOL LLInvFVBridge::canListOnMarketplace() const
}
return TRUE;
+#else
+ return FALSE;
+#endif
}
BOOL LLInvFVBridge::canListOnMarketplaceNow() const
{
+#if ENABLE_MERCHANT_OUTBOX_CONTEXT_MENU
if (get_is_item_worn(mUUID))
{
return FALSE;
@@ -1106,6 +1114,9 @@ BOOL LLInvFVBridge::canListOnMarketplaceNow() const
}
return TRUE;
+#else
+ return FALSE;
+#endif
}