Clear out comment text when saving to solve Issue 1078

Thanks to Zi Ree for this fix
This commit is contained in:
Inusaito Sayori
2013-09-11 03:11:10 -04:00
parent 3045f93f62
commit 9786bc47fb

View File

@@ -1447,6 +1447,7 @@ void LLPreviewLSL::saveIfNeeded(bool sync /*= true*/)
mPendingUploads = 0;
mScriptEd->mErrorList->deleteAllItems();
mScriptEd->mErrorList->setCommentText("");
mScriptEd->mEditor->makePristine();
// save off asset into file
@@ -2190,6 +2191,7 @@ void LLLiveLSLEditor::saveIfNeeded(bool sync /*= true*/)
mScriptEd->enableSave(FALSE);
mScriptEd->mEditor->makePristine();
mScriptEd->mErrorList->deleteAllItems();
mScriptEd->mErrorList->setCommentText("");
// set up the save on the local machine.
mScriptEd->mEditor->makePristine();