Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 61ac64c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/HistoryDialog.py
Expand Up @@ -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()
Expand Down

0 comments on commit 61ac64c

Please sign in to comment.