diff options
author | Merov Linden <merov@lindenlab.com> | 2014-08-30 08:23:08 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2014-08-30 08:23:08 -0700 |
commit | 884fb1de2d3c05612d5b8256637ddf7cba24e94b (patch) | |
tree | 7df494df859274f298dbdb4c83eb4043b8a93871 /indra/newview/llinventorybridge.cpp | |
parent | 6122b8769e92ffc10dbde002873707136f674ffc (diff) |
DD-183 : overloaded the buildContextMenu() method for Notecards so that we get the right menu in marketplace
Diffstat (limited to 'indra/newview/llinventorybridge.cpp')
-rwxr-xr-x | indra/newview/llinventorybridge.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 8316791695..4df815204b 100755 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -5286,6 +5286,25 @@ void LLNotecardBridge::openItem() } } +void LLNotecardBridge::buildContextMenu(LLMenuGL& menu, U32 flags) +{ + LL_DEBUGS() << "LLNotecardBridge::buildContextMenu()" << LL_ENDL; + + if (isMarketplaceListingsFolder()) + { + menuentry_vec_t items; + menuentry_vec_t disabled_items; + addMarketplaceContextMenuOptions(flags, items, disabled_items); + items.push_back(std::string("Properties")); + getClipboardEntries(false, items, disabled_items, flags); + hide_context_entries(menu, items, disabled_items); + } + else + { + LLItemBridge::buildContextMenu(menu, flags); + } +} + // +=================================================+ // | LLGestureBridge | // +=================================================+ |