Skip to content

Commit f34b317

Browse files
committed
[processing] Fix parsing optional output 'create by default' from string'
1 parent 9d12b0a commit f34b317

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

python/plugins/processing/core/parameters.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,16 @@ def getParameterFromString(s):
219219
elif clazz == QgsProcessingParameterFileDestination:
220220
if len(params) > 4:
221221
params[4] = True if params[4].lower() == 'true' else False
222+
if len(params) > 5:
223+
params[5] = True if params[5].lower() == 'true' else False
222224
elif clazz == QgsProcessingParameterFolderDestination:
223225
if len(params) > 3:
224226
params[3] = True if params[3].lower() == 'true' else False
225227
elif clazz == QgsProcessingParameterRasterDestination:
226228
if len(params) > 3:
227229
params[3] = True if params[3].lower() == 'true' else False
230+
if len(params) > 4:
231+
params[4] = True if params[4].lower() == 'true' else False
228232
elif clazz == QgsProcessingParameterVectorDestination:
229233
if len(params) > 2:
230234
try:
@@ -233,6 +237,8 @@ def getParameterFromString(s):
233237
params[2] = getattr(QgsProcessing, params[2].split(".")[1])
234238
if len(params) > 4:
235239
params[4] = True if params[4].lower() == 'true' else False
240+
if len(params) > 5:
241+
params[5] = True if params[5].lower() == 'true' else False
236242

237243
param = clazz(*params)
238244
if isAdvanced:

0 commit comments

Comments
 (0)