aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatermap.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-09-24 22:16:56 -0700
committerMcCabe Maxsted2009-09-24 22:16:56 -0700
commit17ecf79fe82391cd5f9f16e975a3762ebde212e0 (patch)
treec33a01202f42d51eeb7b86266272985f4016505a /linden/indra/newview/llfloatermap.cpp
parentApplied RLVa patch for Imprudence 1.2 by Kitty Barnett (diff)
downloadmeta-impy-17ecf79fe82391cd5f9f16e975a3762ebde212e0.zip
meta-impy-17ecf79fe82391cd5f9f16e975a3762ebde212e0.tar.gz
meta-impy-17ecf79fe82391cd5f9f16e975a3762ebde212e0.tar.bz2
meta-impy-17ecf79fe82391cd5f9f16e975a3762ebde212e0.tar.xz
Fixed Add button being enabled for friends in the radar
Diffstat (limited to 'linden/indra/newview/llfloatermap.cpp')
-rw-r--r--linden/indra/newview/llfloatermap.cpp2
1 files changed, 2 insertions, 0 deletions
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()
297 BOOL enable_unmute = FALSE; 297 BOOL enable_unmute = FALSE;
298 BOOL enable_track = FALSE; 298 BOOL enable_track = FALSE;
299 BOOL enable_estate = FALSE; 299 BOOL enable_estate = FALSE;
300 BOOL enable_friend = FALSE;
300 if (childHasFocus("RadarPanel")) 301 if (childHasFocus("RadarPanel"))
301 { 302 {
302 enable = mSelectedAvatar.notNull() ? visibleItemsSelected() : FALSE; 303 enable = mSelectedAvatar.notNull() ? visibleItemsSelected() : FALSE;
303 enable_unmute = mSelectedAvatar.notNull() ? LLMuteList::getInstance()->isMuted(mSelectedAvatar) : FALSE; 304 enable_unmute = mSelectedAvatar.notNull() ? LLMuteList::getInstance()->isMuted(mSelectedAvatar) : FALSE;
304 enable_track = gAgent.isGodlike() || is_agent_mappable(mSelectedAvatar); 305 enable_track = gAgent.isGodlike() || is_agent_mappable(mSelectedAvatar);
305 enable_estate = getKickable(mSelectedAvatar); 306 enable_estate = getKickable(mSelectedAvatar);
307 enable_friend = !is_agent_friend(mSelectedAvatar);
306 } 308 }
307 else 309 else
308 { 310 {