Skip to content
Permalink
Browse files

[processing] fixed modeler dialog

  • Loading branch information
volaya committed May 25, 2016
1 parent 3607e26 commit f915cbe63e7508dc33064653dddad2a395030d84
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/modeler/ModelerDialog.py
@@ -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()
@@ -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):

0 comments on commit f915cbe

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