From e416840f85dc4a367894036b9fe483f17d959c54 Mon Sep 17 00:00:00 2001 From: Tofu Linden Date: Tue, 24 Aug 2010 19:22:00 +0100 Subject: Backed out changeset c3d41f18ce2b back-out the back-out for this branch. yay. --- indra/newview/llpanelgroup.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'indra/newview/llpanelgroup.cpp') diff --git a/indra/newview/llpanelgroup.cpp b/indra/newview/llpanelgroup.cpp index 347937af01..e42057e93a 100644 --- a/indra/newview/llpanelgroup.cpp +++ b/indra/newview/llpanelgroup.cpp @@ -419,19 +419,14 @@ void LLPanelGroup::setGroupID(const LLUUID& group_id) getChild("prepend_founded_by")->setVisible(!is_null_group_id); - LLAccordionCtrl* tab_ctrl = findChild("group_accordion"); - if(tab_ctrl) - tab_ctrl->reset(); + LLAccordionCtrl* tab_ctrl = getChild("groups_accordion"); + tab_ctrl->reset(); - LLAccordionCtrlTab* tab_general = findChild("group_general_tab"); - LLAccordionCtrlTab* tab_roles = findChild("group_roles_tab"); - LLAccordionCtrlTab* tab_notices = findChild("group_notices_tab"); - LLAccordionCtrlTab* tab_land = findChild("group_land_tab"); + LLAccordionCtrlTab* tab_general = getChild("group_general_tab"); + LLAccordionCtrlTab* tab_roles = getChild("group_roles_tab"); + LLAccordionCtrlTab* tab_notices = getChild("group_notices_tab"); + LLAccordionCtrlTab* tab_land = getChild("group_land_tab"); - - if(!tab_general || !tab_roles || !tab_notices || !tab_land) - return; - if(mButtonJoin) mButtonJoin->setVisible(false); @@ -492,6 +487,8 @@ void LLPanelGroup::setGroupID(const LLUUID& group_id) button_chat->setVisible(is_member); } + tab_ctrl->arrange(); + reposButtons(); update(GC_ALL);//show/hide "join" button if data is already ready } @@ -542,6 +539,7 @@ void LLPanelGroup::draw() { mRefreshTimer.stop(); childEnable("btn_refresh"); + childEnable("groups_accordion"); } LLButton* button_apply = findChild("btn_apply"); @@ -570,6 +568,8 @@ void LLPanelGroup::refreshData() // 5 second timeout childDisable("btn_refresh"); + childDisable("groups_accordion"); + mRefreshTimer.start(); mRefreshTimer.setTimerExpirySec(5); } -- cgit v1.3