[processing] Fix crash on closing batch processing dialog

Refs #20650
This commit is contained in:
Nyall Dawson 2018-11-29 09:28:04 +10:00
parent d207251251
commit f10b62c380

View File

@ -97,7 +97,7 @@ class AlgorithmDialog(QgsProcessingAlgorithmDialogBase):
def runAsBatch(self):
self.close()
dlg = BatchAlgorithmDialog(self.algorithm(), parent=iface.mainWindow())
dlg = BatchAlgorithmDialog(self.algorithm().create(), parent=iface.mainWindow())
dlg.show()
dlg.exec_()