diff --git a/indra/newview/llimpanel.cpp b/indra/newview/llimpanel.cpp index 275c530f4..7a4b11c86 100644 --- a/indra/newview/llimpanel.cpp +++ b/indra/newview/llimpanel.cpp @@ -554,12 +554,7 @@ void LLFloaterIMPanel::onClickMuteVoice() // virtual void LLFloaterIMPanel::draw() { - LLViewerRegion* region = gAgent.getRegion(); - - bool enable_connect = region - && mSessionInitialized - && LLVoiceClient::getInstance()->voiceEnabled() - && mCallBackEnabled; + bool enable_connect = mSessionInitialized && LLVoiceClient::getInstance()->voiceEnabled() && mCallBackEnabled; // hide/show start call and end call buttons mEndCallBtn->setVisible(LLVoiceClient::getInstance()->voiceEnabled() && mVoiceChannel->getState() >= LLVoiceChannel::STATE_CALL_STARTED);