[processing] Fix python error when attempting to re-open generate XYZ tiles algorithm from the history dialog

This commit is contained in:
nirvn 2020-07-23 14:27:14 +07:00 committed by Mathieu Pellerin
parent f2e4ac606e
commit aa05f7641a

View File

@ -121,6 +121,7 @@ class HistoryDialog(BASE, WIDGET):
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)