Skip to content
Snippets Groups Projects
Commit a1c3d608 authored by Andrew Dyukov's avatar Andrew Dyukov
Browse files

No ticket. Removed unrelevant comment and added disabling call button if...

No ticket. Removed unrelevant comment and added disabling call button if session doesn't exist in LLPanelChatControlPanel::updateCallButton().

--HG--
branch : product-engine
parent d90dc965
No related branches found
No related tags found
No related merge requests found
......@@ -81,11 +81,15 @@ void LLPanelChatControlPanel::onVoiceChannelStateChanged(const LLVoiceChannel::E
void LLPanelChatControlPanel::updateCallButton()
{
// hide/show call button
bool voice_enabled = LLVoiceClient::voiceEnabled() && gVoiceClient->voiceWorking();
LLIMModel::LLIMSession* session = LLIMModel::getInstance()->findIMSession(mSessionId);
if (!session) return;
if (!session)
{
childSetEnabled("call_btn", false);
return;
}
bool session_initialized = session->mSessionInitialized;
bool callback_enabled = session->mCallBackEnabled;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment