summaryrefslogtreecommitdiff
path: root/indra/newview/llpreviewscript.cpp
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@lindenlab.com>2025-04-17 20:09:55 -0400
committerGitHub <noreply@github.com>2025-04-17 20:09:55 -0400
commitc0ecfce26d77420f0a26bfb93a82eb9b61513677 (patch)
tree01df292c42d63509b527be7698606e6502ed9a2b /indra/newview/llpreviewscript.cpp
parent37bbc6faa10fd8abf7c0274dfa3e69ff9062baa2 (diff)
parent9c3ce3dec7ad01620213079204d0a43d193bbfb9 (diff)
Merge pull request #3933 from Ansariel/develop-llui-improvements
Clean up LLUI and fix/add suggestions from VS
Diffstat (limited to 'indra/newview/llpreviewscript.cpp')
-rw-r--r--indra/newview/llpreviewscript.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp
index 02a4c7fb26..c2aa4925bd 100644
--- a/indra/newview/llpreviewscript.cpp
+++ b/indra/newview/llpreviewscript.cpp
@@ -703,9 +703,10 @@ void LLScriptEdCore::sync()
}
}
-bool LLScriptEdCore::hasChanged()
+bool LLScriptEdCore::hasChanged() const
{
- if (!mEditor) return false;
+ if (!mEditor)
+ return false;
return ((!mEditor->isPristine() || mEnableSave) && mHasScriptData);
}