summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorybridge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llinventorybridge.cpp')
-rwxr-xr-xindra/newview/llinventorybridge.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp
index 3f2a5501bd..a9d5768854 100755
--- a/indra/newview/llinventorybridge.cpp
+++ b/indra/newview/llinventorybridge.cpp
@@ -290,7 +290,15 @@ BOOL LLInvFVBridge::copyToClipboard() const
// *TODO: make sure this does the right thing
void LLInvFVBridge::showProperties()
{
- show_item_profile(mUUID);
+ LLUUID marketplacelistings_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_MARKETPLACE_LISTINGS, true);
+ if (gInventory.isObjectDescendentOf(mUUID, marketplacelistings_id))
+ {
+ LLFloaterReg::showInstance("item_properties", LLSD().with("id",mUUID));
+ }
+ else
+ {
+ show_item_profile(mUUID);
+ }
// Disable old properties floater; this is replaced by the sidepanel.
/*