aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview')
-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);