Skip to content

Commit 5e07451

Browse files
committedFeb 1, 2018
Fix double registration of model outputs
1 parent 216821c commit 5e07451

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed
 

‎src/core/processing/models/qgsprocessingmodelalgorithm.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -774,15 +774,6 @@ void QgsProcessingModelAlgorithm::updateDestinationParameters()
774774
std::unique_ptr< QgsProcessingParameterDefinition > param( source->clone() );
775775
param->setName( outputIt->childId() + ':' + outputIt->name() );
776776
param->setDescription( outputIt->description() );
777-
778-
if ( const QgsProcessingDestinationParameter *destParam = dynamic_cast< const QgsProcessingDestinationParameter *>( param.get() ) )
779-
{
780-
std::unique_ptr< QgsProcessingOutputDefinition > output( destParam->toOutputDefinition() );
781-
if ( output )
782-
{
783-
addOutput( output.release() );
784-
}
785-
}
786777
addParameter( param.release() );
787778
}
788779
}

‎src/core/processing/qgsprocessingalgorithm.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,6 @@ bool QgsProcessingAlgorithm::createAutoOutputForParameter( QgsProcessingParamete
643643
if ( !addOutput( output ) )
644644
{
645645
// couldn't add output - probably a duplicate name
646-
delete output;
647646
return false;
648647
}
649648
else

0 commit comments

Comments
 (0)
Please sign in to comment.