Skip to content
Permalink
Browse files

[processing] Fix python error when attempting to re-open generate XYZ…

… tiles algorithm from the history dialog
  • Loading branch information
nirvn committed Jul 24, 2020
1 parent f2e4ac6 commit aa05f7641a6975eefa4133beee16a5a2e0e3a07e
Showing with 1 addition and 0 deletions.
  1. +1 −0 python/plugins/processing/gui/HistoryDialog.py
@@ -121,6 +121,7 @@ def executeAlgorithm(self):
if item.isAlg:
script = 'import processing\n'
script += 'from qgis.core import QgsProcessingOutputLayerDefinition, QgsProcessingFeatureSourceDefinition, QgsProperty, QgsCoordinateReferenceSystem, QgsFeatureRequest\n'
script += 'from qgis.PyQt.QtGui import QColor\n'
script += item.entry.text.replace('processing.run(', 'processing.execAlgorithmDialog(')
self.close()
exec(script)

0 comments on commit aa05f76

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