Skip to content
Permalink
Browse files
Merge pull request #2065 from arnaud-morvan/processing-parameter-table
[processing] fix setting value in the ParameterTable
  • Loading branch information
alexbruy committed May 28, 2015
2 parents c61d5f2 + aba4fe0 commit bd3b1738179fd2199d77c68b94de16a96d7fc872
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 bd3b173

Please sign in to comment.