Skip to content
Snippets Groups Projects
Commit 9e1b5bcd authored by Brad Payne (Vir Linden)'s avatar Brad Payne (Vir Linden)
Browse files

SH-3312 FIX - closing floater with outfit edit now has same behavior as...

SH-3312 FIX - closing floater with outfit edit now has same behavior as explicitly leaving outfit edit with backarrow
parent a6bdef64
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,8 @@ ...@@ -32,6 +32,8 @@
// newview includes // newview includes
#include "llsidetraypanelcontainer.h" #include "llsidetraypanelcontainer.h"
#include "lltransientfloatermgr.h" #include "lltransientfloatermgr.h"
#include "llpaneloutfitedit.h"
#include "llsidepanelappearance.h"
//static //static
const std::string LLFloaterSidePanelContainer::sMainPanelName("main_panel"); const std::string LLFloaterSidePanelContainer::sMainPanelName("main_panel");
...@@ -54,6 +56,26 @@ void LLFloaterSidePanelContainer::onOpen(const LLSD& key) ...@@ -54,6 +56,26 @@ void LLFloaterSidePanelContainer::onOpen(const LLSD& key)
getChild<LLPanel>(sMainPanelName)->onOpen(key); getChild<LLPanel>(sMainPanelName)->onOpen(key);
} }
void LLFloaterSidePanelContainer::onClickCloseBtn()
{
llinfos << "close clicked" << llendl;
LLPanelOutfitEdit* panel_outfit_edit =
dynamic_cast<LLPanelOutfitEdit*>(LLFloaterSidePanelContainer::getPanel("appearance", "panel_outfit_edit"));
if (panel_outfit_edit && panel_outfit_edit->getVisible())
{
LLFloater *parent = gFloaterView->getParentFloater(panel_outfit_edit);
if (parent == this)
{
LLSidepanelAppearance* panel_appearance =
dynamic_cast<LLSidepanelAppearance*>(getPanel("appearance"));
panel_appearance->showOutfitsInventoryPanel();
}
}
LLFloater::onClickCloseBtn();
}
LLPanel* LLFloaterSidePanelContainer::openChildPanel(const std::string& panel_name, const LLSD& params) LLPanel* LLFloaterSidePanelContainer::openChildPanel(const std::string& panel_name, const LLSD& params)
{ {
LLView* view = findChildView(panel_name, true); LLView* view = findChildView(panel_name, true);
......
...@@ -51,6 +51,8 @@ class LLFloaterSidePanelContainer : public LLFloater ...@@ -51,6 +51,8 @@ class LLFloaterSidePanelContainer : public LLFloater
/*virtual*/ void onOpen(const LLSD& key); /*virtual*/ void onOpen(const LLSD& key);
/*virtual*/ void onClickCloseBtn();
LLPanel* openChildPanel(const std::string& panel_name, const LLSD& params); LLPanel* openChildPanel(const std::string& panel_name, const LLSD& params);
static void showPanel(const std::string& floater_name, const LLSD& key); static void showPanel(const std::string& floater_name, const LLSD& key);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment