From b25681cc43be5371de6987694c31c61aef5ac145 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Thu, 21 Dec 2017 11:01:56 +1000 Subject: [PATCH] [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... --- python/plugins/processing/gui/HistoryDialog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/plugins/processing/gui/HistoryDialog.py b/python/plugins/processing/gui/HistoryDialog.py index a3c5c5b4cfe..336765c56c3 100644 --- a/python/plugins/processing/gui/HistoryDialog.py +++ b/python/plugins/processing/gui/HistoryDialog.py @@ -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):