Skip to content

Commit

Permalink
[processing] Fix python error when attempting to re-open generate XYZ…
Browse files Browse the repository at this point in the history
… tiles algorithm from the history dialog
  • Loading branch information
github-actions[bot] authored and nyalldawson committed Jul 24, 2020
1 parent c2f89cd commit becf1f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/plugins/processing/gui/HistoryDialog.py
Expand Up @@ -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)
Expand Down

0 comments on commit becf1f4

Please sign in to comment.