diff options
author | Leyla Farazha <leyla@lindenlab.com> | 2009-08-20 00:21:14 +0000 |
---|---|---|
committer | Leyla Farazha <leyla@lindenlab.com> | 2009-08-20 00:21:14 +0000 |
commit | 06b079a24b743088ca51eea1a627f0b4e1722458 (patch) | |
tree | 97d80b66da06aea42ac2c35c318187051cc2b835 /indra/newview/llpanelimcontrolpanel.cpp | |
parent | 6bcf7a6fe64457ad5f1dc2939820e45182476842 (diff) |
EXT-580 Add Friend button in the IM floater not disabled if already friends
EXT-579 Add Friend from the Im floater opens multiple invitation dialogs
sidebar should be up above bottom tray
reviewed by richard
Diffstat (limited to 'indra/newview/llpanelimcontrolpanel.cpp')
-rw-r--r-- | indra/newview/llpanelimcontrolpanel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/llpanelimcontrolpanel.cpp b/indra/newview/llpanelimcontrolpanel.cpp index 1d50bb26f6..51cdc5af93 100644 --- a/indra/newview/llpanelimcontrolpanel.cpp +++ b/indra/newview/llpanelimcontrolpanel.cpp @@ -53,6 +53,7 @@ BOOL LLPanelIMControlPanel::postBuild() childSetAction("add_friend_btn", boost::bind(&LLPanelIMControlPanel::onAddFriendButtonClicked, this)); childSetAction("call_btn", boost::bind(&LLPanelIMControlPanel::onCallButtonClicked, this)); childSetAction("share_btn", boost::bind(&LLPanelIMControlPanel::onShareButtonClicked, this)); + childSetEnabled("add_friend_btn", !LLAvatarActions::isFriend(getChild<LLAvatarIconCtrl>("avatar_icon")->getAvatarId())); return TRUE; } |