From 48afa8d0488b2621b540e4db6a9deb7fa5be947b Mon Sep 17 00:00:00 2001 From: Kadah_Coba Date: Sat, 18 Feb 2012 20:00:40 -0800 Subject: [PATCH] LP: Fixed profile call button --- indra/newview/fspanelprofile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/indra/newview/fspanelprofile.cpp b/indra/newview/fspanelprofile.cpp index b681c343d3..28cd508ad4 100644 --- a/indra/newview/fspanelprofile.cpp +++ b/indra/newview/fspanelprofile.cpp @@ -315,7 +315,7 @@ void FSPanelProfile::onOpen(const LLSD& key) //Disable "Add Friend" button for friends. getChildView("add_friend")->setEnabled(!LLAvatarActions::isFriend(getAvatarId())); - mVoiceStatus == LLVoiceClient::getInstance()->voiceEnabled() && LLVoiceClient::getInstance()->isVoiceWorking(); + mVoiceStatus = LLAvatarActions::canCall(); } FSDropTarget* target = getChild ("drop_target"); @@ -572,7 +572,7 @@ void FSPanelProfile::toggleBlock() bool FSPanelProfile::enableCall() { - return mVoiceStatus == TRUE; + return mVoiceStatus; } void FSPanelProfile::kick() @@ -653,7 +653,7 @@ void FSPanelProfile::onChange(EStatusType status, const std::string &channelURI, return; } - mVoiceStatus == LLVoiceClient::getInstance()->voiceEnabled() && LLVoiceClient::getInstance()->isVoiceWorking(); + mVoiceStatus = LLAvatarActions::canCall(); } void FSPanelProfile::setAvatarId(const LLUUID& id)