From e20276aadade4f88b9b4ddc149ce4ef97f938d88 Mon Sep 17 00:00:00 2001 From: Cho Date: Wed, 2 Jul 2014 00:38:22 +0100 Subject: Hide experiences accordion when creating new group for ACME-1542 --- indra/newview/llpanelgroup.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'indra/newview/llpanelgroup.cpp') diff --git a/indra/newview/llpanelgroup.cpp b/indra/newview/llpanelgroup.cpp index 8936084d97..f67a90fd01 100755 --- a/indra/newview/llpanelgroup.cpp +++ b/indra/newview/llpanelgroup.cpp @@ -420,6 +420,7 @@ void LLPanelGroup::setGroupID(const LLUUID& group_id) LLAccordionCtrlTab* tab_roles = getChild("group_roles_tab"); LLAccordionCtrlTab* tab_notices = getChild("group_notices_tab"); LLAccordionCtrlTab* tab_land = getChild("group_land_tab"); + LLAccordionCtrlTab* tab_experiences = getChild("group_experiences_tab"); if(mButtonJoin) mButtonJoin->setVisible(false); @@ -436,10 +437,13 @@ void LLPanelGroup::setGroupID(const LLUUID& group_id) tab_notices->changeOpenClose(tab_notices->getDisplayChildren()); if(tab_land->getDisplayChildren()) tab_land->changeOpenClose(tab_land->getDisplayChildren()); + if(tab_experiences->getDisplayChildren()) + tab_experiences->changeOpenClose(tab_land->getDisplayChildren()); tab_roles->setVisible(false); tab_notices->setVisible(false); tab_land->setVisible(false); + tab_experiences->setVisible(false); getChild("group_name")->setVisible(false); getChild("group_name_editor")->setVisible(true); @@ -461,6 +465,8 @@ void LLPanelGroup::setGroupID(const LLUUID& group_id) tab_notices->changeOpenClose(tab_notices->getDisplayChildren()); if(tab_land->getDisplayChildren()) tab_land->changeOpenClose(tab_land->getDisplayChildren()); + if(tab_experiences->getDisplayChildren()) + tab_experiences->changeOpenClose(tab_land->getDisplayChildren()); } LLGroupData agent_gdatap; @@ -469,6 +475,7 @@ void LLPanelGroup::setGroupID(const LLUUID& group_id) tab_roles->setVisible(is_member); tab_notices->setVisible(is_member); tab_land->setVisible(is_member); + tab_experiences->setVisible(is_member); getChild("group_name")->setVisible(true); getChild("group_name_editor")->setVisible(false); @@ -536,6 +543,7 @@ bool LLPanelGroup::apply() && apply(findChild("group_roles_tab_panel")) && apply(findChild("group_notices_tab_panel")) && apply(findChild("group_land_tab_panel")) + && apply(findChild("group_experiences_tab_panel")) ; } -- cgit v1.2.3