checking if JS script is loaded before compiling

avoids crash
This commit is contained in:
Bertrand
2021-02-26 07:45:53 +01:00
parent 39a1d2e17d
commit 8a1ce9f238
+5 -2
View File
@@ -345,8 +345,11 @@ void ScriptingWindow::revertScript()
void ScriptingWindow::recompileScript() void ScriptingWindow::recompileScript()
{ {
currentScript->scriptText = editor->toPlainText(); if (currentScript)
currentScript->compileScript(); {
currentScript->scriptText = editor->toPlainText();
currentScript->compileScript();
}
} }
void ScriptingWindow::clickedLogClear() void ScriptingWindow::clickedLogClear()