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()
|
void ScriptingWindow::recompileScript()
|
||||||
{
|
{
|
||||||
currentScript->scriptText = editor->toPlainText();
|
if (currentScript)
|
||||||
currentScript->compileScript();
|
{
|
||||||
|
currentScript->scriptText = editor->toPlainText();
|
||||||
|
currentScript->compileScript();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScriptingWindow::clickedLogClear()
|
void ScriptingWindow::clickedLogClear()
|
||||||
|
|||||||
Reference in New Issue
Block a user