Skip to content

Commit 14164ef

Browse files
committed
[processing] Fix crash when running model through modeler dialog
Fixes #20676 (cherry picked from commit 01de9c3)
1 parent 55674a3 commit 14164ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/processing/modeler/ModelerDialog.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def runModel(self):
487487
self.bar.pushMessage("", self.tr("Model doesn't contain any algorithm and/or parameter and can't be executed"), level=Qgis.Warning, duration=5)
488488
return
489489

490-
dlg = AlgorithmDialog(self.model, parent=iface.mainWindow())
490+
dlg = AlgorithmDialog(self.model.create(), parent=iface.mainWindow())
491491
dlg.exec_()
492492

493493
def save(self):

0 commit comments

Comments
 (0)