Skip to content
Permalink
Browse files

[processing] handle Processing.TEMPORARY_OUTPUT in the

parameterAsString() method which is used also for folder outputs
  • Loading branch information
alexbruy committed Jan 29, 2019
1 parent 82ec141 commit fc3d5c8502840fe0b579f5d810c82ebe993a7c5c
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/processing/qgsprocessingparameters.cpp
@@ -82,6 +82,12 @@ QString QgsProcessingParameters::parameterAsString( const QgsProcessingParameter
val = definition->defaultValue();
}

if ( val == QgsProcessing::TEMPORARY_OUTPUT )
{
if ( const QgsProcessingDestinationParameter *destParam = dynamic_cast< const QgsProcessingDestinationParameter * >( definition ) )
return destParam->generateTemporaryDestination();
}

return val.toString();
}

0 comments on commit fc3d5c8

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