Skip to content

Commit

Permalink
[processing] fixed modeler dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed May 25, 2016
1 parent 3607e26 commit f915cbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/modeler/ModelerDialog.py
Expand Up @@ -89,7 +89,7 @@ def _dropEvent(event):
if text in ModelerParameterDefinitionDialog.paramTypes:
self.addInputOfType(text, event.pos())
else:
alg = Processing.getAlgorithm(text)
alg = algList.getAlgorithm(text)
if alg is not None:
self._addAlgorithm(alg.getCopy(), event.pos())
event.accept()
Expand Down Expand Up @@ -420,7 +420,7 @@ def fillInputsTree(self):
def addAlgorithm(self):
item = self.algorithmTree.currentItem()
if isinstance(item, TreeAlgorithmItem):
alg = ModelerUtils.getAlgorithm(item.alg.commandLineName())
alg = algList.getAlgorithm(item.alg.commandLineName())
self._addAlgorithm(alg.getCopy())

def _addAlgorithm(self, alg, pos=None):
Expand Down

0 comments on commit f915cbe

Please sign in to comment.