[processing] Show model outputs even if they are hidden in the child

This commit is contained in:
Matthias Kuhn 2018-04-08 21:42:44 +02:00
parent eb39d2379c
commit 0b149f5282

View File

@ -769,6 +769,9 @@ void QgsProcessingModelAlgorithm::updateDestinationParameters()
continue;
std::unique_ptr< QgsProcessingParameterDefinition > param( source->clone() );
// Even if an output was hidden in a child algorithm, we want to show it here for the final
// outputs.
param->setFlags( param->flags() & ~QgsProcessingParameterDefinition::FlagHidden );
param->setName( outputIt->childId() + ':' + outputIt->name() );
param->setDescription( outputIt->description() );
addParameter( param.release() );