Skip to content

Commit 74ffdb1

Browse files
committed
Fix field widget wrapper
1 parent f0f0411 commit 74ffdb1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎python/plugins/processing/gui/wrappers.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,6 +1173,8 @@ def parentValueChanged(self, wrapper):
11731173

11741174
def setLayer(self, layer):
11751175
context = dataobjects.createContext()
1176+
if isinstance(layer, QgsProcessingFeatureSourceDefinition):
1177+
layer, ok = layer.source.valueAsString(context.expressionContext())
11761178
if isinstance(layer, str):
11771179
layer = QgsProcessingUtils.mapLayerFromString(layer, context)
11781180
self._layer = layer

0 commit comments

Comments
 (0)