diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2009-11-30 11:58:28 -0500 | 
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2009-11-30 11:58:28 -0500 | 
| commit | 4899fea00652d37b35cbc32ad6f2ca05a5cffd6b (patch) | |
| tree | 808d10a91cace776f086ebb582c5dd0d89c59dc3 | |
| parent | 2be386826f177e865133e5c7ccd4fd345f923ac9 (diff) | |
For EXT-2857: Open 'Outfits Bar' accordion when creating/renaming new outfit
--HG--
branch : avatar-pipeline
| -rw-r--r-- | indra/newview/llagentwearables.cpp | 15 | 
1 files changed, 12 insertions, 3 deletions
| diff --git a/indra/newview/llagentwearables.cpp b/indra/newview/llagentwearables.cpp index f0742876e2..5d56a5dfa1 100644 --- a/indra/newview/llagentwearables.cpp +++ b/indra/newview/llagentwearables.cpp @@ -52,6 +52,7 @@  #include "llsidetray.h"  #include "llpaneloutfitsinventory.h"  #include "llfolderview.h" +#include "llaccordionctrltab.h"  #include <boost/scoped_ptr.hpp> @@ -1312,9 +1313,17 @@ public:  		LLSideTray::getInstance()->showPanel("panel_outfits_inventory", key);  		LLPanelOutfitsInventory *outfit_panel =  			dynamic_cast<LLPanelOutfitsInventory*>(LLSideTray::getInstance()->getPanel("panel_outfits_inventory")); -		outfit_panel->getRootFolder()->clearSelection(); -		outfit_panel->getRootFolder()->setSelectionByID(mFolderID, TRUE); -		outfit_panel->getRootFolder()->setNeedsAutoRename(TRUE); +		if (outfit_panel) +		{ +			outfit_panel->getRootFolder()->clearSelection(); +			outfit_panel->getRootFolder()->setSelectionByID(mFolderID, TRUE); +			outfit_panel->getRootFolder()->setNeedsAutoRename(TRUE); +		} +		LLAccordionCtrlTab* tab_outfits = outfit_panel ? outfit_panel->findChild<LLAccordionCtrlTab>("tab_outfits") : 0; +		if (tab_outfits && !tab_outfits->getDisplayChildren()) +		{ +			tab_outfits->changeOpenClose(tab_outfits->getDisplayChildren()); +		}  	}  	virtual void fire(const LLUUID&) | 
