mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[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:
parent
5f7aa45aab
commit
b25681cc43
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user