Skip to content
Permalink
Browse files

Also add results to results dock when running through algorithm dialog

  • Loading branch information
nyalldawson committed Jun 27, 2017
1 parent 1e5d773 commit 14347a431eb771f2ad33a805c8b026391a5f41bc
Showing with 8 additions and 1 deletion.
  1. +8 −1 python/plugins/processing/gui/AlgorithmDialog.py
@@ -39,6 +39,7 @@
QgsProcessingParameterDefinition,
QgsProcessingOutputRasterLayer,
QgsProcessingOutputVectorLayer,
QgsProcessingOutputHtml,
QgsProcessingParameterVectorOutput,
QgsProcessingOutputLayerDefinition,
QgsProcessingParameterFeatureSink,
@@ -49,7 +50,7 @@

from processing.core.ProcessingLog import ProcessingLog
from processing.core.ProcessingConfig import ProcessingConfig

from processing.core.ProcessingResults import resultsList
from processing.gui.ParametersPanel import ParametersPanel
from processing.gui.BatchAlgorithmDialog import BatchAlgorithmDialog
from processing.gui.AlgorithmDialogBase import AlgorithmDialogBase
@@ -273,6 +274,12 @@ def finish(self, result, context, feedback):

if self.iterateParam is None:

# add html results to results dock
for out in self.alg.outputDefinitions():
if isinstance(out, QgsProcessingOutputHtml) and out.name() in result and result[out.name()]:
resultsList.addResult(icon=self.alg.icon(), name=out.description(),
result=result[out.name()])

if not handleAlgorithmResults(self.alg, context, feedback, not keepOpen):
self.resetGUI()
return

0 comments on commit 14347a4

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