File tree 1 file changed +6
-2
lines changed
python/plugins/processing/modeler
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -308,13 +308,17 @@ def setPreviousValues(self):
308
308
value = value [0 ]
309
309
elif isinstance (value , list ) and len (value ) == 0 :
310
310
value = None
311
- if value is None :
312
- value = param .defaultValue ()
313
311
314
312
wrapper = self .wrappers [param .name ()]
315
313
if issubclass (wrapper .__class__ , QgsProcessingModelerParameterWidget ):
314
+ if value is None :
315
+ value = QgsProcessingModelChildParameterSource .fromStaticValue (param .defaultValue ())
316
+
316
317
wrapper .setWidgetValue (value )
317
318
else :
319
+ if value is None :
320
+ value = param .defaultValue ()
321
+
318
322
if isinstance (value ,
319
323
QgsProcessingModelChildParameterSource ) and value .source () == QgsProcessingModelChildParameterSource .StaticValue :
320
324
value = value .staticValue ()
You can’t perform that action at this time.
0 commit comments