Fix package layers algorithm can't take the outputs from models

Fixes #17544
This commit is contained in:
Nyall Dawson 2017-11-26 12:01:41 +10:00
parent 96857ebdd4
commit 7451422069

View File

@ -541,6 +541,12 @@ class MultipleLayerWidgetWrapper(WidgetWrapper):
QgsProcessingParameterVectorLayer,
QgsProcessingParameterMultipleLayers),
QgsProcessingOutputVectorLayer)
elif self.param.layerType() == QgsProcessing.TypeVector:
options = self.dialog.getAvailableValuesOfType((QgsProcessingParameterFeatureSource,
QgsProcessingParameterVectorLayer,
QgsProcessingParameterMultipleLayers),
QgsProcessingOutputVectorLayer,
[QgsProcessing.TypeVector])
elif self.param.layerType() == QgsProcessing.TypeVectorPoint:
options = self.dialog.getAvailableValuesOfType((QgsProcessingParameterFeatureSource,
QgsProcessingParameterVectorLayer,