fixed normal bug EXT-2193 Group Profile, Group Chat bttns and Profile chevron are enabled for None Group

--HG--
branch : product-engine
meow-7.2.2
Andrew Polunin 2009-11-06 17:00:26 +02:00
parent 4b80490222
commit 30fe1aa197
2 changed files with 9 additions and 2 deletions

View File

@ -183,6 +183,11 @@ void LLGroupList::addNewItem(const LLUUID& id, const std::string& name, const LL
item->childSetVisible("info_btn", false);
item->setGroupIconVisible(mShowIcons);
if (id.isNull())
{
item->childSetVisible("profile_btn", false);
}
addItem(item, id, pos);
// setCommentVisible(false);

View File

@ -667,8 +667,10 @@ void LLPanelPeople::updateButtons()
buttonSetEnabled("im_btn", (selected_uuids.size() >= 1)); // allow starting the friends conference for multiple selection
buttonSetEnabled("call_btn", item_selected && false); // not implemented yet
buttonSetEnabled("share_btn", item_selected && false); // not implemented yet
buttonSetEnabled("group_info_btn", item_selected);
buttonSetEnabled("chat_btn", item_selected);
bool none_group_selected = item_selected && selected_id.isNull();
buttonSetEnabled("group_info_btn", !none_group_selected);
buttonSetEnabled("chat_btn", !none_group_selected);
}
std::string LLPanelPeople::getActiveTabName() const