Skip to content
Permalink
Browse files

Remove leftover method getCustomModelerParametersDialog

  • Loading branch information
m-kuhn committed Apr 9, 2018
1 parent 4e4c189 commit 4a14a3603488660a753d2b2ccc1b918be4c4a664
@@ -643,11 +643,7 @@ def addAlgorithm(self):
self._addAlgorithm(alg)

def _addAlgorithm(self, alg, pos=None):
dlg = None
try:
dlg = alg.getCustomModelerParametersDialog(self.model)
except AttributeError:
dlg = ModelerParametersDialog(alg, self.model)
dlg = ModelerParametersDialog(alg, self.model)
if dlg.exec_():
alg = dlg.createAlgorithm()
if pos is None:
@@ -207,12 +207,8 @@ def editElement(self):
self.text = dlg.param.description()
self.scene.dialog.repaintModel()
elif isinstance(self.element, QgsProcessingModelChildAlgorithm):
dlg = None
elemAlg = self.element.algorithm()
if hasattr(elemAlg, 'getCustomModelerParametersDialog'):
dlg = elemAlg.getCustomModelerParametersDialog(self.model, self.element.childId())
if not dlg:
dlg = ModelerParametersDialog(elemAlg, self.model, self.element.childId())
dlg = ModelerParametersDialog(elemAlg, self.model, self.element.childId())
if dlg.exec_():
alg = dlg.createAlgorithm()
alg.setChildId(self.element.childId())

0 comments on commit 4a14a36

Please sign in to comment.
You can’t perform that action at this time.