diff options
author | Steve Bennetts <steve@lindenlab.com> | 2009-11-10 17:52:28 -0800 |
---|---|---|
committer | Steve Bennetts <steve@lindenlab.com> | 2009-11-10 17:52:28 -0800 |
commit | 98ca90bed46591573f5072121a774d19cc69381f (patch) | |
tree | e11d8e8b4459b8513c0495f76932c71385b1e062 /indra/newview/llgrouplist.cpp | |
parent | 04eaf3f34fbc0b2ba7f6dd22600e8df1aaa63ed8 (diff) | |
parent | 2857dd026ce67f26f4da2f07ecffd8d6b754625c (diff) |
Merge changes from product-engine
Diffstat (limited to 'indra/newview/llgrouplist.cpp')
-rw-r--r-- | indra/newview/llgrouplist.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/indra/newview/llgrouplist.cpp b/indra/newview/llgrouplist.cpp index 010ed23918..cdb85f5b1c 100644 --- a/indra/newview/llgrouplist.cpp +++ b/indra/newview/llgrouplist.cpp @@ -181,13 +181,9 @@ void LLGroupList::addNewItem(const LLUUID& id, const std::string& name, const LL // item->setContextMenu(mContextMenu); item->childSetVisible("info_btn", false); + item->childSetVisible("profile_btn", false); item->setGroupIconVisible(mShowIcons); - if (id.isNull()) - { - item->childSetVisible("profile_btn", false); - } - addItem(item, id, pos); // setCommentVisible(false); @@ -254,7 +250,10 @@ void LLGroupListItem::onMouseEnter(S32 x, S32 y, MASK mask) { childSetVisible("hovered_icon", true); if (mGroupID.notNull()) // don't show the info button for the "none" group + { mInfoBtn->setVisible(true); + childSetVisible("profile_btn", true); + } LLPanel::onMouseEnter(x, y, mask); } @@ -263,6 +262,7 @@ void LLGroupListItem::onMouseLeave(S32 x, S32 y, MASK mask) { childSetVisible("hovered_icon", false); mInfoBtn->setVisible(false); + childSetVisible("profile_btn", false); LLPanel::onMouseLeave(x, y, mask); } |