diff options
| author | Vadim ProductEngine <vsavchuk@productengine.com> | 2012-01-27 19:31:52 +0200 | 
|---|---|---|
| committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2012-01-27 19:31:52 +0200 | 
| commit | 13d510d5f2fa2d9bf654e70d9191f1909b1f299e (patch) | |
| tree | 63dcf7b3994820939f1daa033ff65150b8279459 /indra/newview | |
| parent | 886946d699880e90b8d34d8b8c2e88d59929d4df (diff) | |
EXP-1847 FIXED Fixed inability to mute a nearby avatar in Voice Settings if the speakers list is sorted by name.
Added missing update of the floater's internal speaker list.
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llcallfloater.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llpanelimcontrolpanel.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llparticipantlist.cpp | 6 | ||||
| -rw-r--r-- | indra/newview/llparticipantlist.h | 4 | 
4 files changed, 7 insertions, 7 deletions
| diff --git a/indra/newview/llcallfloater.cpp b/indra/newview/llcallfloater.cpp index c95e8234ff..f2375bfa4f 100644 --- a/indra/newview/llcallfloater.cpp +++ b/indra/newview/llcallfloater.cpp @@ -188,7 +188,7 @@ void LLCallFloater::draw()  	// Need to resort the participant list if it's in sort by recent speaker order.  	if (mParticipants) -		mParticipants->updateRecentSpeakersOrder(); +		mParticipants->update();  	LLFloater::draw();  } diff --git a/indra/newview/llpanelimcontrolpanel.cpp b/indra/newview/llpanelimcontrolpanel.cpp index 0295ad151f..eda0749cdb 100644 --- a/indra/newview/llpanelimcontrolpanel.cpp +++ b/indra/newview/llpanelimcontrolpanel.cpp @@ -374,7 +374,7 @@ void LLPanelGroupControlPanel::draw()  {  	// Need to resort the participant list if it's in sort by recent speaker order.  	if (mParticipantList) -		mParticipantList->updateRecentSpeakersOrder(); +		mParticipantList->update();  	LLPanelChatControlPanel::draw();  } diff --git a/indra/newview/llparticipantlist.cpp b/indra/newview/llparticipantlist.cpp index 183bc7b610..975a6c67d8 100644 --- a/indra/newview/llparticipantlist.cpp +++ b/indra/newview/llparticipantlist.cpp @@ -469,12 +469,12 @@ void LLParticipantList::setValidateSpeakerCallback(validate_speaker_callback_t c  	mValidateSpeakerCallback = cb;  } -void LLParticipantList::updateRecentSpeakersOrder() +void LLParticipantList::update()  { +	mSpeakerMgr->update(true); +  	if (E_SORT_BY_RECENT_SPEAKERS == getSortOrder() && !isHovered())  	{ -		// Need to update speakers to sort list correctly -		mSpeakerMgr->update(true);  		// Resort avatar list  		sort();  	} diff --git a/indra/newview/llparticipantlist.h b/indra/newview/llparticipantlist.h index a001d29b67..53966c15fe 100644 --- a/indra/newview/llparticipantlist.h +++ b/indra/newview/llparticipantlist.h @@ -72,9 +72,9 @@ public:  	const EParticipantSortOrder getSortOrder() const;  	/** -	 * Refreshes the participant list if it's in sort by recent speaker order. +	 * Refreshes the participant list.  	 */ -	void updateRecentSpeakersOrder(); +	void update();  	/**  	 * Set a callback to be called before adding a speaker. Invalid speakers will not be added. | 
