Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
3d28a088
Commit
3d28a088
authored
9 years ago
by
Martyn Gigg
Browse files
Options
Downloads
Patches
Plain Diff
Only call abort if the script is executing.
Refs #13265
parent
a9e011b9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Mantid/MantidPlot/src/Script.cpp
+1
-2
1 addition, 2 deletions
Code/Mantid/MantidPlot/src/Script.cpp
with
1 addition
and
2 deletions
Code/Mantid/MantidPlot/src/Script.cpp
+
1
−
2
View file @
3d28a088
...
...
@@ -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
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment