diff options
| -rw-r--r-- | indra/newview/llfloaterimsessiontab.cpp | 17 | 
1 files changed, 10 insertions, 7 deletions
| diff --git a/indra/newview/llfloaterimsessiontab.cpp b/indra/newview/llfloaterimsessiontab.cpp index 7541bb5efe..76723da77e 100644 --- a/indra/newview/llfloaterimsessiontab.cpp +++ b/indra/newview/llfloaterimsessiontab.cpp @@ -384,13 +384,16 @@ void LLFloaterIMSessionTab::draw()  void LLFloaterIMSessionTab::enableDisableCallBtn()  { -    mVoiceButton->setEnabled( -    		mSessionID.notNull() -    		&& mSession -    		&& mSession->mSessionInitialized -    		&& LLVoiceClient::getInstance()->voiceEnabled() -    		&& LLVoiceClient::getInstance()->isVoiceWorking() -    		&& mSession->mCallBackEnabled); +    if (LLVoiceClient::instanceExists()) +    { +        mVoiceButton->setEnabled( +            mSessionID.notNull() +            && mSession +            && mSession->mSessionInitialized +            && LLVoiceClient::getInstance()->voiceEnabled() +            && LLVoiceClient::getInstance()->isVoiceWorking() +            && mSession->mCallBackEnabled); +    }  }  void LLFloaterIMSessionTab::onFocusReceived() | 
