summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprep <prep@lindenlab.com>2013-01-09 12:41:51 -0500
committerprep <prep@lindenlab.com>2013-01-09 12:41:51 -0500
commit8e8765535f94d3084305ef7b9e4644ec92d10723 (patch)
treea937d2d8db13c31e2785242df6b18fd27cf78072
parentec2b97110158a225ea1ac35d377b905e70418b77 (diff)
SH-3620: Fix for editing a nocopy wearable being removed from the outfit
-rw-r--r--indra/newview/llpaneleditwearable.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/indra/newview/llpaneleditwearable.cpp b/indra/newview/llpaneleditwearable.cpp
index 786b215fdf..606e78bd58 100644
--- a/indra/newview/llpaneleditwearable.cpp
+++ b/indra/newview/llpaneleditwearable.cpp
@@ -882,9 +882,12 @@ void LLPanelEditWearable::setWearable(LLViewerWearable *wearable, BOOL disable_c
//static
void LLPanelEditWearable::onBackButtonClicked(void* userdata)
-{
- LLPanelEditWearable *panel = (LLPanelEditWearable*) userdata;
- panel->saveChanges(true);
+{
+ LLPanelEditWearable *panel = (LLPanelEditWearable*) userdata;
+ if ( panel->isDirty() )
+ {
+ LLAppearanceMgr::instance().setOutfitDirty( true );
+ }
}
//static