Skip to content
Permalink
Browse files

[processing] Fix parsing optional output 'create by default' from str…

…ing'
  • Loading branch information
nyalldawson committed May 6, 2018
1 parent 9d12b0a commit f34b3170b2ec5d3eafe8ef18906d21d270142a00
Showing with 6 additions and 0 deletions.
  1. +6 −0 python/plugins/processing/core/parameters.py
@@ -219,12 +219,16 @@ def getParameterFromString(s):
elif clazz == QgsProcessingParameterFileDestination:
if len(params) > 4:
params[4] = True if params[4].lower() == 'true' else False
if len(params) > 5:
params[5] = True if params[5].lower() == 'true' else False
elif clazz == QgsProcessingParameterFolderDestination:
if len(params) > 3:
params[3] = True if params[3].lower() == 'true' else False
elif clazz == QgsProcessingParameterRasterDestination:
if len(params) > 3:
params[3] = True if params[3].lower() == 'true' else False
if len(params) > 4:
params[4] = True if params[4].lower() == 'true' else False
elif clazz == QgsProcessingParameterVectorDestination:
if len(params) > 2:
try:
@@ -233,6 +237,8 @@ def getParameterFromString(s):
params[2] = getattr(QgsProcessing, params[2].split(".")[1])
if len(params) > 4:
params[4] = True if params[4].lower() == 'true' else False
if len(params) > 5:
params[5] = True if params[5].lower() == 'true' else False

param = clazz(*params)
if isAdvanced:

0 comments on commit f34b317

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