From 17ecf79fe82391cd5f9f16e975a3762ebde212e0 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Thu, 24 Sep 2009 22:16:56 -0700 Subject: Fixed Add button being enabled for friends in the radar --- linden/indra/newview/llfloatermap.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'linden/indra/newview/llfloatermap.cpp') diff --git a/linden/indra/newview/llfloatermap.cpp b/linden/indra/newview/llfloatermap.cpp index f7f51fd..6d23ab4 100644 --- a/linden/indra/newview/llfloatermap.cpp +++ b/linden/indra/newview/llfloatermap.cpp @@ -297,12 +297,14 @@ void LLFloaterMap::toggleButtons() BOOL enable_unmute = FALSE; BOOL enable_track = FALSE; BOOL enable_estate = FALSE; + BOOL enable_friend = FALSE; if (childHasFocus("RadarPanel")) { enable = mSelectedAvatar.notNull() ? visibleItemsSelected() : FALSE; enable_unmute = mSelectedAvatar.notNull() ? LLMuteList::getInstance()->isMuted(mSelectedAvatar) : FALSE; enable_track = gAgent.isGodlike() || is_agent_mappable(mSelectedAvatar); enable_estate = getKickable(mSelectedAvatar); + enable_friend = !is_agent_friend(mSelectedAvatar); } else { -- cgit v1.1