Skip to content

Commit

Permalink
Fix double registration of model outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 1, 2018
1 parent 216821c commit 5e07451
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
9 changes: 0 additions & 9 deletions src/core/processing/models/qgsprocessingmodelalgorithm.cpp
Expand Up @@ -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() );
}
}
Expand Down
1 change: 0 additions & 1 deletion src/core/processing/qgsprocessingalgorithm.cpp
Expand Up @@ -643,7 +643,6 @@ bool QgsProcessingAlgorithm::createAutoOutputForParameter( QgsProcessingParamete
if ( !addOutput( output ) )
{
// couldn't add output - probably a duplicate name
delete output;
return false;
}
else
Expand Down

0 comments on commit 5e07451

Please sign in to comment.