summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-08-28 20:50:33 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-08-28 20:50:33 -0400
commitbaa7255687f265b2996754490083e7c26c646d72 (patch)
tree114c59bcfcacf6526e0ea2e734432981581fa28e /indra/newview
parentcde1174345224d33d6b45b1e3243fa39043223e5 (diff)
Add script control to "Inventory.DoCreate" registered menu action.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llinventorygallerymenu.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llinventorygallerymenu.cpp b/indra/newview/llinventorygallerymenu.cpp
index 37e2228b2e..2845c5b614 100644
--- a/indra/newview/llinventorygallerymenu.cpp
+++ b/indra/newview/llinventorygallerymenu.cpp
@@ -106,7 +106,8 @@ LLContextMenu* LLInventoryGalleryContextMenu::createMenu()
{
mGallery->doCreate(mUUIDs.front(), data);
}
- });
+ },
+ LLUICtrl::cb_info::UNTRUSTED_BLOCK);
std::set<LLUUID> uuids(mUUIDs.begin(), mUUIDs.end());
registrar.add("Inventory.Share", boost::bind(&LLAvatarActions::shareWithAvatars, uuids, gFloaterView->getParentFloater(mGallery)), LLUICtrl::cb_info::UNTRUSTED_BLOCK);