checking if JS script is loaded before compiling
avoids crash
This commit is contained in:
+5
-2
@@ -345,8 +345,11 @@ void ScriptingWindow::revertScript()
|
||||
|
||||
void ScriptingWindow::recompileScript()
|
||||
{
|
||||
currentScript->scriptText = editor->toPlainText();
|
||||
currentScript->compileScript();
|
||||
if (currentScript)
|
||||
{
|
||||
currentScript->scriptText = editor->toPlainText();
|
||||
currentScript->compileScript();
|
||||
}
|
||||
}
|
||||
|
||||
void ScriptingWindow::clickedLogClear()
|
||||
|
||||
Reference in New Issue
Block a user