diff options
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llchathistory.cpp | 2 | ||||
| -rwxr-xr-x | indra/newview/llconversationview.cpp | 20 | ||||
| -rwxr-xr-x | indra/newview/llconversationview.h | 2 | 
3 files changed, 9 insertions, 15 deletions
| diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp index 605e3ece51..a33bd88273 100644 --- a/indra/newview/llchathistory.cpp +++ b/indra/newview/llchathistory.cpp @@ -809,7 +809,7 @@ void LLChatHistory::appendMessage(const LLChat& chat, const LLSD &args, const LL  	if (irc_me || chat.mChatStyle == CHAT_STYLE_IRC)  	{  		delimiter = LLStringUtil::null; -		name_params.font.style = "ITALIC"; +		body_message_params.font.style = "ITALIC";  	}  	bool message_from_log = chat.mChatStyle == CHAT_STYLE_HISTORY; diff --git a/indra/newview/llconversationview.cpp b/indra/newview/llconversationview.cpp index 4c52794e4c..b9d62e85c4 100755 --- a/indra/newview/llconversationview.cpp +++ b/indra/newview/llconversationview.cpp @@ -57,14 +57,11 @@ public:  	virtual void onChange(EStatusType status, const std::string &channelURI, bool proximal)  	{ -		if (conversation -		   && status != STATUS_JOINING -		   && status != STATUS_LEFT_CHANNEL -		   && LLVoiceClient::getInstance()->voiceEnabled() -		   && LLVoiceClient::getInstance()->isVoiceWorking()) -		{ -			conversation->showVoiceIndicator(); -		} +		conversation->showVoiceIndicator(conversation +			&& status != STATUS_JOINING +			&& status != STATUS_LEFT_CHANNEL +			&& LLVoiceClient::getInstance()->voiceEnabled() +			&& LLVoiceClient::getInstance()->isVoiceWorking());  	}  private: @@ -288,12 +285,9 @@ LLConversationViewParticipant* LLConversationViewSession::findParticipant(const  	return (iter == getItemsEnd() ? NULL : participant);  } -void LLConversationViewSession::showVoiceIndicator() +void LLConversationViewSession::showVoiceIndicator(bool visible)  { -	if (LLVoiceChannel::getCurrentVoiceChannel()->getSessionID().isNull()) -	{ -		mCallIconLayoutPanel->setVisible(true); -	} +	mCallIconLayoutPanel->setVisible(visible && LLVoiceChannel::getCurrentVoiceChannel()->getSessionID().isNull());  }  void LLConversationViewSession::refresh() diff --git a/indra/newview/llconversationview.h b/indra/newview/llconversationview.h index 1baa8bb5ec..8156b746b2 100755 --- a/indra/newview/llconversationview.h +++ b/indra/newview/llconversationview.h @@ -78,7 +78,7 @@ public:  	void setVisibleIfDetached(BOOL visible);  	LLConversationViewParticipant* findParticipant(const LLUUID& participant_id); -	void showVoiceIndicator(); +	void showVoiceIndicator(bool visible);  	virtual void refresh(); | 
