Skip to content
Permalink
Browse files

Fix field widget wrapper

  • Loading branch information
nyalldawson committed Jun 6, 2017
1 parent f0f0411 commit 74ffdb1187ee93db4c724ec90d33d13eb0810d1e
Showing with 2 additions and 0 deletions.
  1. +2 −0 python/plugins/processing/gui/wrappers.py
@@ -1173,6 +1173,8 @@ def parentValueChanged(self, wrapper):

def setLayer(self, layer):
context = dataobjects.createContext()
if isinstance(layer, QgsProcessingFeatureSourceDefinition):
layer, ok = layer.source.valueAsString(context.expressionContext())
if isinstance(layer, str):
layer = QgsProcessingUtils.mapLayerFromString(layer, context)
self._layer = layer

0 comments on commit 74ffdb1

Please sign in to comment.
You can’t perform that action at this time.