diff options
author | James Cook <james@lindenlab.com> | 2009-10-23 16:44:23 -0700 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2009-10-23 16:44:23 -0700 |
commit | 07f7247dff19cb7acd320113734773c099b0366d (patch) | |
tree | 7072f301675db427686c06eca48592b89d4db227 /indra/newview/llgrouplist.cpp | |
parent | 71822edfe824c5f7c742d6d9b8528f8ff541963b (diff) | |
parent | 2b69cb9e9cf5209a8156580b74e6662e4cc4243f (diff) |
merge
Diffstat (limited to 'indra/newview/llgrouplist.cpp')
-rw-r--r-- | indra/newview/llgrouplist.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llgrouplist.cpp b/indra/newview/llgrouplist.cpp index 27e31d4edd..2e2b2d5101 100644 --- a/indra/newview/llgrouplist.cpp +++ b/indra/newview/llgrouplist.cpp @@ -43,6 +43,7 @@ // newview #include "llagent.h" #include "llgroupactions.h" +#include "llfloaterreg.h" #include "llviewercontrol.h" // for gSavedSettings static LLDefaultChildRegistry::Register<LLGroupList> r("group_list"); @@ -231,6 +232,8 @@ BOOL LLGroupListItem::postBuild() mInfoBtn = getChild<LLButton>("info_btn"); mInfoBtn->setClickedCallback(boost::bind(&LLGroupListItem::onInfoBtnClick, this)); + childSetAction("profile_btn", boost::bind(&LLGroupListItem::onProfileBtnClick, this)); + return TRUE; } @@ -321,6 +324,12 @@ void LLGroupListItem::setActive(bool active) void LLGroupListItem::onInfoBtnClick() { + LLFloaterReg::showInstance("inspect_group", LLSD().insert("group_id", mGroupID)); +} + +void LLGroupListItem::onProfileBtnClick() +{ LLGroupActions::show(mGroupID); } + //EOF |