summaryrefslogtreecommitdiff
path: root/indra/newview/llspeakers.cpp
diff options
context:
space:
mode:
authorMike Antipov <mantipov@productengine.com>2009-12-26 14:24:22 +0200
committerMike Antipov <mantipov@productengine.com>2009-12-26 14:24:22 +0200
commit4f9563b8292188836476ec750e0292e8efa34627 (patch)
tree7dc0c0673a4b6602c1aa9b34c602f9ea0b87b1f2 /indra/newview/llspeakers.cpp
parent77abf061fb0f315e8966bf7eb1b8beb61b876601 (diff)
Fixed low bug EXT-3543 ("Mute this participant" menu should be disabled for non-connected participants)
-- improved condition to validate whether speaker is in voice channel --HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llspeakers.cpp')
-rw-r--r--indra/newview/llspeakers.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llspeakers.cpp b/indra/newview/llspeakers.cpp
index 91b417c61f..010dfd1b33 100644
--- a/indra/newview/llspeakers.cpp
+++ b/indra/newview/llspeakers.cpp
@@ -615,6 +615,9 @@ private:
void LLIMSpeakerMgr::toggleAllowTextChat(const LLUUID& speaker_id)
{
+ LLPointer<LLSpeaker> speakerp = findSpeaker(speaker_id);
+ if (!speakerp) return;
+
std::string url = gAgent.getRegion()->getCapability("ChatSessionRequest");
LLSD data;
data["method"] = "mute update";
@@ -623,7 +626,7 @@ void LLIMSpeakerMgr::toggleAllowTextChat(const LLUUID& speaker_id)
data["params"]["agent_id"] = speaker_id;
data["params"]["mute_info"] = LLSD::emptyMap();
//current value represents ability to type, so invert
- data["params"]["mute_info"]["text"] = !findSpeaker(speaker_id)->mModeratorMutedText;
+ data["params"]["mute_info"]["text"] = !speakerp->mModeratorMutedText;
LLHTTPClient::post(url, data, new ModerationResponder(getSessionID()));
}