Skip to content

Commit fc3d5c8

Browse files
committedJan 29, 2019
[processing] handle Processing.TEMPORARY_OUTPUT in the
parameterAsString() method which is used also for folder outputs
1 parent 82ec141 commit fc3d5c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/core/processing/qgsprocessingparameters.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ QString QgsProcessingParameters::parameterAsString( const QgsProcessingParameter
8282
val = definition->defaultValue();
8383
}
8484

85+
if ( val == QgsProcessing::TEMPORARY_OUTPUT )
86+
{
87+
if ( const QgsProcessingDestinationParameter *destParam = dynamic_cast< const QgsProcessingDestinationParameter * >( definition ) )
88+
return destParam->generateTemporaryDestination();
89+
}
90+
8591
return val.toString();
8692
}
8793

0 commit comments

Comments
 (0)
Please sign in to comment.