Skip to content
Snippets Groups Projects
Commit 6bbb8681 authored by andreylproductengine's avatar andreylproductengine
Browse files

MAINT-3842 FIXED Using "Close Window" (Ctrl + W) shortcut while in Appearance...

MAINT-3842 FIXED Using "Close Window" (Ctrl + W) shortcut while in Appearance mode doesn't visually revert any changes...
parent 4fdf1c34
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ void LLFloaterSidePanelContainer::onOpen(const LLSD& key)
getChild<LLPanel>(sMainPanelName)->onOpen(key);
}
void LLFloaterSidePanelContainer::onClickCloseBtn(bool)
void LLFloaterSidePanelContainer::closeFloater(bool app_quitting)
{
LLPanelOutfitEdit* panel_outfit_edit =
dynamic_cast<LLPanelOutfitEdit*>(LLFloaterSidePanelContainer::getPanel("appearance", "panel_outfit_edit"));
......@@ -75,7 +75,7 @@ void LLFloaterSidePanelContainer::onClickCloseBtn(bool)
}
}
LLFloater::onClickCloseBtn();
LLFloater::closeFloater(app_quitting);
}
LLPanel* LLFloaterSidePanelContainer::openChildPanel(const std::string& panel_name, const LLSD& params)
......
......@@ -51,7 +51,7 @@ class LLFloaterSidePanelContainer : public LLFloater
/*virtual*/ void onOpen(const LLSD& key);
/*virtual*/ void onClickCloseBtn(bool app_quitting = false);
/*virtual*/ void closeFloater(bool app_quitting = false);
LLPanel* openChildPanel(const std::string& panel_name, const LLSD& params);
......
......@@ -859,10 +859,8 @@ void LLPanelEditWearable::draw()
void LLPanelEditWearable::onClose()
{
if ( isDirty() )
{
revertChanges();
}
// any unsaved changes should be reverted at this point
revertChanges();
}
void LLPanelEditWearable::setVisible(BOOL visible)
......
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