[processing] Fix crash when running model through modeler dialog

Fixes #20676
This commit is contained in:
Nyall Dawson 2018-11-30 08:25:21 +10:00
parent 0e4b0980d8
commit 3a66b92522

View File

@ -487,7 +487,7 @@ class ModelerDialog(BASE, WIDGET):
self.bar.pushMessage("", self.tr("Model doesn't contain any algorithm and/or parameter and can't be executed"), level=Qgis.Warning, duration=5)
return
dlg = AlgorithmDialog(self.model, parent=iface.mainWindow())
dlg = AlgorithmDialog(self.model.create(), parent=iface.mainWindow())
dlg.exec_()
def save(self):