diff options
| author | Alexei Arabadji <aarabadji@productengine.com> | 2010-02-04 19:10:24 +0200 | 
|---|---|---|
| committer | Alexei Arabadji <aarabadji@productengine.com> | 2010-02-04 19:10:24 +0200 | 
| commit | 78200e2c1c1bc2e53f694b2ae086f486a7f0095c (patch) | |
| tree | dbc56d3e6da9d0d77536521a1e30f684bd3141f1 | |
| parent | 353be3c934927610c9a4a28fd508ebf91fc290c3 (diff) | |
fixed EXT-4893 “'Add friend' available for friends in group/conference sessions”,
corrected condition for enable 'add friend' menu item;
--HG--
branch : product-engine
| -rw-r--r-- | indra/newview/llparticipantlist.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/indra/newview/llparticipantlist.cpp b/indra/newview/llparticipantlist.cpp index ad47e351ee..1c4004c37a 100644 --- a/indra/newview/llparticipantlist.cpp +++ b/indra/newview/llparticipantlist.cpp @@ -584,7 +584,7 @@ bool LLParticipantList::LLParticipantListMenu::enableContextMenuItem(const LLSD&  {  	std::string item = userdata.asString();  	if (item == "can_mute_text" || "can_block" == item || "can_share" == item || "can_im" == item  -		|| "can_pay" == item || "can_add" == item) +		|| "can_pay" == item)  	{  		return mUUIDs.front() != gAgentID;  	} @@ -619,7 +619,7 @@ bool LLParticipantList::LLParticipantListMenu::enableContextMenuItem(const LLSD&  		for (;id != uuids_end; ++id)  		{ -			if ( LLAvatarActions::isFriend(*id) ) +			if ( *id == gAgentID || LLAvatarActions::isFriend(*id) )  			{  				result = false;  				break; | 
