Skip to content
Permalink
Browse files
Fix processing ParameterTable.setValue
  • Loading branch information
arnaud-morvan committed May 22, 2015
1 parent 87f2370 commit aba4fe0fe2e92b69b19b314184bd9432e2b69cd1
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/plugins/processing/core/parameters.py
@@ -620,9 +620,10 @@ def setValue(self, obj):
self.value = source
return True
else:
layers = dataobjects.getVectorLayers()
self.value = unicode(obj)
layers = dataobjects.getTables()
for layer in layers:
if layer.name() == self.value:
if layer.name() == self.value or layer.source() == self.value:
source = unicode(layer.source())
self.value = source
return True

0 comments on commit aba4fe0

Please sign in to comment.