Skip to content

Commit

Permalink
Fix processing ParameterTable.setValue
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-morvan committed May 22, 2015
1 parent 87f2370 commit aba4fe0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/plugins/processing/core/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aba4fe0

Please sign in to comment.