From f915cbe63e7508dc33064653dddad2a395030d84 Mon Sep 17 00:00:00 2001 From: volaya Date: Wed, 25 May 2016 14:59:08 +0200 Subject: [PATCH] [processing] fixed modeler dialog --- python/plugins/processing/modeler/ModelerDialog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/plugins/processing/modeler/ModelerDialog.py b/python/plugins/processing/modeler/ModelerDialog.py index 3ecfd96b3f1..01882f3f47b 100644 --- a/python/plugins/processing/modeler/ModelerDialog.py +++ b/python/plugins/processing/modeler/ModelerDialog.py @@ -89,7 +89,7 @@ class ModelerDialog(BASE, WIDGET): 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 @@ class ModelerDialog(BASE, WIDGET): 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):