summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2015-05-22 14:07:02 +0300
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2015-05-22 14:07:02 +0300
commit4e6b91abb65823a96a7b67c434f63b9367864c46 (patch)
tree62c523b12dadbf7f1de6e1a0ae8bdca4fb978b18 /indra
parentcae660f50e1cffd7e3143b26b8b3e1a38d729eab (diff)
MAINT-999 FIXED Clear message when clicking Save button.
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llpreviewscript.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp
index 7feb20332b..eff28a0123 100755
--- a/indra/newview/llpreviewscript.cpp
+++ b/indra/newview/llpreviewscript.cpp
@@ -2401,8 +2401,12 @@ void LLLiveLSLEditor::onLoad(void* userdata)
void LLLiveLSLEditor::onSave(void* userdata, BOOL close_after_save)
{
LLLiveLSLEditor* self = (LLLiveLSLEditor*)userdata;
- self->mCloseAfterSave = close_after_save;
- self->saveIfNeeded();
+ if(self)
+ {
+ self->mCloseAfterSave = close_after_save;
+ self->mScriptEd->mErrorList->setCommentText("");
+ self->saveIfNeeded();
+ }
}