Skip to content

Commit

Permalink
Remove leftover method getCustomModelerParametersDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 9, 2018
1 parent 4e4c189 commit 4a14a36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions python/plugins/processing/modeler/ModelerDialog.py
Expand Up @@ -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:
Expand Down
6 changes: 1 addition & 5 deletions python/plugins/processing/modeler/ModelerGraphicItem.py
Expand Up @@ -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())
Expand Down

0 comments on commit 4a14a36

Please sign in to comment.