summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatersidepanelcontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloatersidepanelcontainer.cpp')
-rwxr-xr-xindra/newview/llfloatersidepanelcontainer.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/indra/newview/llfloatersidepanelcontainer.cpp b/indra/newview/llfloatersidepanelcontainer.cpp
index d5bb8157cf..13a9ba1695 100755
--- a/indra/newview/llfloatersidepanelcontainer.cpp
+++ b/indra/newview/llfloatersidepanelcontainer.cpp
@@ -70,7 +70,16 @@ void LLFloaterSidePanelContainer::onOpen(const LLSD& key)
{
getChild<LLPanel>(sMainPanelName)->onOpen(key);
}
-
+void LLFloaterSidePanelContainer::onClose(bool app_quitting)
+{
+ mForceCloseAfterVerify = true;
+ LLSidepanelAppearance* panel = getSidePanelAppearance();
+ if ( panel )
+ {
+ panel->mRevertSet = true;
+ panel->onCloseFromAppearance( this );
+ }
+}
void LLFloaterSidePanelContainer::onClickCloseBtn()
{
LLSidepanelAppearance* panel = getSidePanelAppearance();
@@ -127,7 +136,7 @@ void LLFloaterSidePanelContainer::showPanel(const std::string& floater_name, con
{
if ( panel->checkForDirtyEdits() )
{
- panel->onClickConfirmExitWithoutSaveIntoAppearance();
+ panel->onClickConfirmExitWithoutSaveIntoAppearance( floaterp );
}
else
{