summaryrefslogtreecommitdiff
path: root/indra/newview/llavataractions.cpp
diff options
context:
space:
mode:
authorAndrew A. de Laix <alain@lindenlab.com>2011-06-15 15:12:42 -0700
committerAndrew A. de Laix <alain@lindenlab.com>2011-06-15 15:12:42 -0700
commit0fb93246b36b356362e1899eab2d67c8931d9471 (patch)
treeaf2fb0edb9b86f18ecea9586e14b252717bb60ae /indra/newview/llavataractions.cpp
parent92a47165be54de4dd6bf42bc9472d2fc54f7169e (diff)
Fix VWR-24099: disable teleport button when too many friends are selected; we keep the warning dialog as a failsafe.
Diffstat (limited to 'indra/newview/llavataractions.cpp')
-rwxr-xr-xindra/newview/llavataractions.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llavataractions.cpp b/indra/newview/llavataractions.cpp
index cbbdcb2983..955f19c82c 100755
--- a/indra/newview/llavataractions.cpp
+++ b/indra/newview/llavataractions.cpp
@@ -773,6 +773,10 @@ bool LLAvatarActions::canOfferTeleport(const LLUUID& id)
// static
bool LLAvatarActions::canOfferTeleport(const uuid_vec_t& ids)
{
+ // We can't send more than 250 lures in a single message, so disable this
+ // button when there are too many id's selected.
+ if(ids.size() > 250) return false;
+
bool result = true;
for (uuid_vec_t::const_iterator it = ids.begin(); it != ids.end(); ++it)
{