Skip to content
Permalink
Browse files

Fix double registration of model outputs

  • Loading branch information
nyalldawson committed Feb 1, 2018
1 parent 216821c commit 5e0745140f60ce67cdf69239c90d7e8a5872e31f
@@ -774,15 +774,6 @@ void QgsProcessingModelAlgorithm::updateDestinationParameters()
std::unique_ptr< QgsProcessingParameterDefinition > param( source->clone() );
param->setName( outputIt->childId() + ':' + outputIt->name() );
param->setDescription( outputIt->description() );

if ( const QgsProcessingDestinationParameter *destParam = dynamic_cast< const QgsProcessingDestinationParameter *>( param.get() ) )
{
std::unique_ptr< QgsProcessingOutputDefinition > output( destParam->toOutputDefinition() );
if ( output )
{
addOutput( output.release() );
}
}
addParameter( param.release() );
}
}
@@ -643,7 +643,6 @@ bool QgsProcessingAlgorithm::createAutoOutputForParameter( QgsProcessingParamete
if ( !addOutput( output ) )
{
// couldn't add output - probably a duplicate name
delete output;
return false;
}
else

0 comments on commit 5e07451

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