Skip to content
Permalink
Browse files

Fix infinite progress when an algorithm could not be created

  • Loading branch information
nyalldawson committed Feb 20, 2019
1 parent 979adbb commit 7acfefadadaf5c5ce6da921e8ad4ded927b6606f
Showing with 5 additions and 2 deletions.
  1. +5 −2 python/plugins/processing/gui/AlgorithmDialog.py
@@ -263,8 +263,11 @@ def on_complete(ok, results):
self.showLog()

task = QgsProcessingAlgRunnerTask(self.algorithm(), parameters, self.context, self.feedback)
task.executed.connect(on_complete)
self.setCurrentTask(task)
if task.isCanceled():
on_complete(False, {})
else:
task.executed.connect(on_complete)
self.setCurrentTask(task)
else:
self.proxy_progress = QgsProxyProgressTask(QCoreApplication.translate("AlgorithmDialog", "Executing “{}”").format(self.algorithm().displayName()))
QgsApplication.taskManager().addTask(self.proxy_progress)

0 comments on commit 7acfefa

Please sign in to comment.
You can’t perform that action at this time.