diff options
Diffstat (limited to 'indra/newview/llpreviewscript.cpp')
| -rw-r--r-- | indra/newview/llpreviewscript.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp index fbe6fc3e40..9e209f3914 100644 --- a/indra/newview/llpreviewscript.cpp +++ b/indra/newview/llpreviewscript.cpp @@ -2045,6 +2045,7 @@ void LLPreviewLSL::saveIfNeeded(bool sync /*= true*/) mPendingUploads = 0; mScriptEd->mErrorList->deleteAllItems(); + mScriptEd->enableSave(false); mScriptEd->mEditor->makePristine(); if (sync) @@ -2081,6 +2082,7 @@ void LLPreviewLSL::saveIfNeeded(bool sync /*= true*/) void LLPreviewLSL::onCompileTargetChanged() { + mScriptEd->enableSave(true); bool is_lua = (mScriptEd->mCompileTarget->getValue().asString() == "luau"); mScriptEd->mEditor->setLuauLanguage(is_lua); mScriptEd->processKeywords(is_lua); |
