Commit 10f88c26 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas
Browse files

fix bug with evaluator toolbar when the evaluation is cancelled

parent fe5edf9d
......@@ -115,6 +115,7 @@ void dtkComposerEvaluatorToolBar::setComposerWidget(dtkComposerWidget *composer)
d->composer = composer;
connect(d->run_action, SIGNAL(triggered()), this, SLOT(onEvaluatorStarted()));
connect(d->composer->evaluator(), SIGNAL(evaluationStopped()), this, SLOT(onEvaluatorFinished()));
connect(d->composer, SIGNAL(evaluationStopped()), this, SLOT(onEvaluatorFinished()));
connect(d->composer->evaluator(), SIGNAL(evaluationPaused(dtkComposerGraphNode*)), this, SLOT(onEvaluatorPaused(dtkComposerGraphNode*)));
connect(d->step_action, SIGNAL(triggered()), d->composer, SLOT(step()));
......
......@@ -244,6 +244,8 @@ void dtkComposerWidget::run(void)
if (d->scene->checkImplementations()) {
QtConcurrent::run(d->evaluator, &dtkComposerEvaluator::run, false);
} else {
emit evaluationStopped();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment