diff options
| author | Jonathan "Geenz" Goodman <geenz@lindenlab.com> | 2026-10-13 14:36:53 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-13 14:36:53 -0400 |
| commit | fac07196d86e899686c4f1ce88776b11a906cd58 (patch) | |
| tree | f3a3a530b80b1b17e71c7b6d7fa8b981b52c61f9 /indra/newview/llpreviewscript.cpp | |
| parent | 083db782e29434ab17963fcac76b0ec3cd93b9d0 (diff) | |
| parent | 181fd93f799e15a6ff924362c4a05be8db3639af (diff) | |
Merge pull request #6438 from secondlife/geenz/main-26.5
Main -> 26.5
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 cee1180fa7..ffb748baae 100644 --- a/indra/newview/llpreviewscript.cpp +++ b/indra/newview/llpreviewscript.cpp @@ -2046,6 +2046,7 @@ void LLPreviewLSL::saveIfNeeded(bool sync /*= true*/) mPendingUploads = 0; mScriptEd->mErrorList->deleteAllItems(); + mScriptEd->enableSave(false); mScriptEd->mEditor->makePristine(); if (sync) @@ -2082,6 +2083,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); |
