summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorEugene Mutavchi <emutavchi@productengine.com>2009-11-27 14:31:09 +0200
committerEugene Mutavchi <emutavchi@productengine.com>2009-11-27 14:31:09 +0200
commite4fd6e41809144056662332db3146cc50b8f5acb (patch)
tree4680fa12e1c16e5f1278762b526589f77dc393b2 /indra
parentc1e362322b6645a32410a228e5d6de1b4f0fb9bd (diff)
Fixed low bug EXT-2730 (Trash icon should not be enabled unless a person has been selected)
--HG-- branch : product-engine
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpanelpeople.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llpanelpeople.cpp b/indra/newview/llpanelpeople.cpp
index 73d903ed36..6771bb4170 100644
--- a/indra/newview/llpanelpeople.cpp
+++ b/indra/newview/llpanelpeople.cpp
@@ -763,7 +763,13 @@ void LLPanelPeople::updateButtons()
LLPanel* cur_panel = mTabContainer->getCurrentPanel();
if (cur_panel)
+ {
cur_panel->childSetEnabled("add_friend_btn", !is_friend);
+ if (friends_tab_active)
+ {
+ cur_panel->childSetEnabled("del_btn", multiple_selected);
+ }
+ }
}
buttonSetEnabled("teleport_btn", friends_tab_active && item_selected && isFriendOnline(selected_uuids.front()));