[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...
This commit is contained in:
Nyall Dawson 2017-12-21 11:01:56 +10:00
parent 5f7aa45aab
commit b25681cc43

View File

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