summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelpeoplemenus.cpp
diff options
context:
space:
mode:
authorPaul Guslisty <pguslisty@productengine.com>2009-12-14 19:53:54 +0200
committerPaul Guslisty <pguslisty@productengine.com>2009-12-14 19:53:54 +0200
commitfe0da9bf7b81d24a9614f95d9f91012796eabf77 (patch)
treeb15ffe19dcd8ebee73bb500200af5d90f1577126 /indra/newview/llpanelpeoplemenus.cpp
parent37b039b9fd5d970b297715b9187b60a241e36a3a (diff)
Fixed low bug EXT - 3255 (Call button is enabled in the People & Profile panels while voice is disabled)
--HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llpanelpeoplemenus.cpp')
-rw-r--r--indra/newview/llpanelpeoplemenus.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/indra/newview/llpanelpeoplemenus.cpp b/indra/newview/llpanelpeoplemenus.cpp
index 573de1e51c..0314642d9e 100644
--- a/indra/newview/llpanelpeoplemenus.cpp
+++ b/indra/newview/llpanelpeoplemenus.cpp
@@ -181,7 +181,25 @@ bool NearbyMenu::enableContextMenuItem(const LLSD& userdata)
const LLUUID& id = mUUIDs.front();
return LLAvatarActions::isFriend(id);
}
+ else if (item == std::string("can_call"))
+ {
+ bool result = false;
+ int size = mUUIDs.size();
+ std::cout << size << std::endl;
+ std::vector<LLUUID>::const_iterator
+ id = mUUIDs.begin(),
+ uuids_end = mUUIDs.end();
+ for (;id != uuids_end; ++id)
+ {
+ if (LLAvatarActions::canCall(*id))
+ {
+ result = true;
+ break;
+ }
+ }
+ return result;
+ }
return false;
}