Skip to content

Commit

Permalink
Merge pull request #2065 from arnaud-morvan/processing-parameter-table
Browse files Browse the repository at this point in the history
[processing] fix setting value in the ParameterTable
  • Loading branch information
alexbruy committed May 28, 2015
2 parents c61d5f2 + aba4fe0 commit bd3b173
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/plugins/processing/core/parameters.py
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 bd3b173

Please sign in to comment.