summaryrefslogtreecommitdiff
path: root/indra/newview/llpreviewscript.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2025-04-18 20:44:34 +0300
committerGitHub <noreply@github.com>2025-04-18 20:44:34 +0300
commit11cd9b91a2cf3e71cb6dae0a08dff2b878163ce8 (patch)
treec5fed987eeece9706957ecb3e47559e4a89f4923 /indra/newview/llpreviewscript.cpp
parentd3d8513c3b5a7f25adac777d9d59896d8dbd14c0 (diff)
parent1c3ce46d34293f0e1dc5887ef98b05921af663c9 (diff)
Merge pull request #3914 from secondlife/marchcat/05-develop
develop → 2025.05 sync
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);
}