Skip to content

Commit

Permalink
[processing] When removing a parameter registered as an output, remov…
Browse files Browse the repository at this point in the history
…e it from outputs list
  • Loading branch information
nirvn committed Apr 24, 2020
1 parent 2e7bebc commit ff7b2e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/processing/qgsprocessingalgorithm.cpp
Expand Up @@ -329,6 +329,12 @@ void QgsProcessingAlgorithm::removeParameter( const QString &name )
delete def;
mParameters.removeAll( def );
}
const QgsProcessingOutputDefinition *outputDef = outputDefinition( name );
if ( outputDef )
{
delete outputDef;
mOutputs.removeAll( outputDef );
}
}

bool QgsProcessingAlgorithm::addOutput( QgsProcessingOutputDefinition *definition )
Expand Down

0 comments on commit ff7b2e8

Please sign in to comment.