Navigation Menu

Skip to content

Commit

Permalink
Fix possible exception in processing history panel
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 13, 2020
1 parent 0396162 commit 847aadf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/HistoryDialog.py
Expand Up @@ -120,7 +120,7 @@ def executeAlgorithm(self):
if isinstance(item, TreeLogEntryItem):
if item.isAlg:
script = 'import processing\n'
script += 'from qgis.core import QgsProcessingOutputLayerDefinition, QgsProcessingFeatureSourceDefinition, QgsProperty, QgsCoordinateReferenceSystem\n'
script += 'from qgis.core import QgsProcessingOutputLayerDefinition, QgsProcessingFeatureSourceDefinition, QgsProperty, QgsCoordinateReferenceSystem, QgsFeatureRequest\n'
script += item.entry.text.replace('processing.run(', 'processing.execAlgorithmDialog(')
self.close()
exec(script)
Expand Down

0 comments on commit 847aadf

Please sign in to comment.