Skip to content
Permalink
Browse files
[processing] Python entry in history dialog should be processing.run
line, not processing.execAlgorithmDialog

We want this line to be copy/pastable into a script which executes
the algorithm without user interaction, same as QGIS <= 3.18

Followup #42541
  • Loading branch information
nyalldawson committed May 28, 2021
1 parent 3d3f3f7 commit 61ac64c5a146adc72d38eaf5ab3fe35a6f51be20
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/gui/HistoryDialog.py
@@ -186,7 +186,7 @@ def changeText(self):
item = self.tree.currentItem()
if isinstance(item, TreeLogEntryItem):
self.text.setText('"""\n' + self.tr('Double-click on the history item or paste the command below to re-run the algorithm') + '\n"""\n\n' +
item.entry.text.replace('processing.run(', 'processing.execAlgorithmDialog(').replace(LOG_SEPARATOR, '\n'))
item.entry.text.replace(LOG_SEPARATOR, '\n'))

def createTest(self):
item = self.tree.currentItem()

0 comments on commit 61ac64c

Please sign in to comment.