Skip to content
Snippets Groups Projects
Commit 3d28a088 authored by Martyn Gigg's avatar Martyn Gigg
Browse files

Only call abort if the script is executing.

Refs #13265
parent a9e011b9
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +161,7 @@ QFuture<bool> Script::executeAsync(const ScriptCode & code)
/// Request that this script be aborted
void Script::abort()
{
this->abortImpl();
if(isExecuting()) this->abortImpl();
}
/**
......@@ -202,4 +202,3 @@ QString Script::normaliseLineEndings(QString text) const
text = text.replace(QRegExp("\\r"), QString("\n"));
return text;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment