summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2013-03-01 14:36:39 +0200
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2013-03-01 14:36:39 +0200
commitae8f8c6999c4ccc396c4f329842e61592a59586e (patch)
treee734fed018b9ee8f93d2981725826a68b4860ba9
parent9530b9d2b717d338af79108c60c2aa67e33ba6e5 (diff)
CHUI-794 FIXED Disable context menu options if you select yourself with other participants
-rw-r--r--indra/newview/llfloaterimcontainer.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llfloaterimcontainer.cpp b/indra/newview/llfloaterimcontainer.cpp
index 49c30e8768..d6571845cc 100644
--- a/indra/newview/llfloaterimcontainer.cpp
+++ b/indra/newview/llfloaterimcontainer.cpp
@@ -1213,6 +1213,15 @@ bool LLFloaterIMContainer::enableContextMenuItem(const std::string& item, uuid_v
return false;
}
+ // If the user agent is selected with others, everything is disabled
+ for (uuid_vec_t::const_iterator id = uuids.begin(); id != uuids.end(); ++id)
+ {
+ if (gAgent.getID() == *id)
+ {
+ return false;
+ }
+ }
+
// Handle all other options
if (("can_invite" == item) || ("can_chat_history" == item) || ("can_share" == item) || ("can_pay" == item))
{