Skip to content
Permalink
Browse files

[needs-docs][processing] Double clicking a history entry shows

the algorithm dialog instead of immediately executing same alg

This allows users to edit the parameters before re-running,
which is a more common user-operation (e.g. changing the
input layer, changing a parameter value "oops, that buffer
was a bit too big....").

If someone wants to exactly re-run the algorithm without changes
it's only one extra click anyway...
  • Loading branch information
nyalldawson committed Dec 21, 2017
1 parent 5f7aa45 commit b25681cc43be5371de6987694c31c61aef5ac145
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/processing/gui/HistoryDialog.py
@@ -113,7 +113,8 @@ def executeAlgorithm(self):
if item.isAlg:
script = 'import processing\n'
script += 'from qgis.core import QgsProcessingOutputLayerDefinition, QgsProcessingFeatureSourceDefinition\n'
script += item.entry.text.replace('processing.run(', 'processing.runAndLoadResults(')
script += item.entry.text.replace('processing.run(', 'processing.execAlgorithmDialog(')
self.close()
exec(script)

def changeText(self):

0 comments on commit b25681c

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