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