Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 fc3d5c8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/processing/qgsprocessingparameters.cpp
Expand Up @@ -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();
}

Expand Down

0 comments on commit fc3d5c8

Please sign in to comment.