aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-09-16 00:36:45 -0700
committerMcCabe Maxsted2009-09-16 00:36:45 -0700
commit99769066f53b0552ca0b303618ebe9aba8825b62 (patch)
tree1a6f0da67a202e5b89a03b038bb15da291174948 /linden
parentFixed bad RLVa behavior in minimap (diff)
downloadmeta-impy-99769066f53b0552ca0b303618ebe9aba8825b62.zip
meta-impy-99769066f53b0552ca0b303618ebe9aba8825b62.tar.gz
meta-impy-99769066f53b0552ca0b303618ebe9aba8825b62.tar.bz2
meta-impy-99769066f53b0552ca0b303618ebe9aba8825b62.tar.xz
Don't track avatars when focus lost
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/newview/llfloatermap.cpp19
1 files changed, 16 insertions, 3 deletions
diff --git a/linden/indra/newview/llfloatermap.cpp b/linden/indra/newview/llfloatermap.cpp
index 748bb7e..1ec2020 100644
--- a/linden/indra/newview/llfloatermap.cpp
+++ b/linden/indra/newview/llfloatermap.cpp
@@ -277,7 +277,10 @@ void LLFloaterMap::populateRadar()
277 277
278 mRadarList->sortItems(); 278 mRadarList->sortItems();
279 mRadarList->setScrollPos(scroll_pos); 279 mRadarList->setScrollPos(scroll_pos);
280 mRadarList->selectByID(mSelectedAvatar); 280 if (mSelectedAvatar.notNull())
281 {
282 mRadarList->selectByID(mSelectedAvatar);
283 }
281 284
282 // set count 285 // set count
283 std::stringstream avatar_count; 286 std::stringstream avatar_count;
@@ -300,8 +303,18 @@ void LLFloaterMap::populateRadar()
300 303
301void LLFloaterMap::toggleButtons() 304void LLFloaterMap::toggleButtons()
302{ 305{
303 BOOL enabled = mSelectedAvatar.notNull() ? visibleItemsSelected() : FALSE; 306 BOOL enabled = FALSE;
304 BOOL unmute_enabled = mSelectedAvatar.notNull() ? LLMuteList::getInstance()->isMuted(mSelectedAvatar) : FALSE; 307 BOOL unmute_enabled = FALSE;
308 LLPanel* panelp = getChild<LLPanel>("RadarPanel");
309 if (panelp->hasFocus())
310 {
311 enabled = mSelectedAvatar.notNull() ? visibleItemsSelected() : FALSE;
312 unmute_enabled = mSelectedAvatar.notNull() ? LLMuteList::getInstance()->isMuted(mSelectedAvatar) : FALSE;
313 }
314 else
315 {
316 mRadarList->deselect();
317 }
305 318
306 childSetEnabled("im_btn", enabled); 319 childSetEnabled("im_btn", enabled);
307 childSetEnabled("profile_btn", enabled); 320 childSetEnabled("profile_btn", enabled);