Skip to content

Commit

Permalink
Fix package layers algorithm can't take the outputs from models
Browse files Browse the repository at this point in the history
Fixes #17544
  • Loading branch information
nyalldawson committed Nov 26, 2017
1 parent 96857eb commit 7451422
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/plugins/processing/gui/wrappers.py
Expand Up @@ -541,6 +541,12 @@ def _getOptions(self):
QgsProcessingParameterVectorLayer, QgsProcessingParameterVectorLayer,
QgsProcessingParameterMultipleLayers), QgsProcessingParameterMultipleLayers),
QgsProcessingOutputVectorLayer) QgsProcessingOutputVectorLayer)
elif self.param.layerType() == QgsProcessing.TypeVector:
options = self.dialog.getAvailableValuesOfType((QgsProcessingParameterFeatureSource,
QgsProcessingParameterVectorLayer,
QgsProcessingParameterMultipleLayers),
QgsProcessingOutputVectorLayer,
[QgsProcessing.TypeVector])
elif self.param.layerType() == QgsProcessing.TypeVectorPoint: elif self.param.layerType() == QgsProcessing.TypeVectorPoint:
options = self.dialog.getAvailableValuesOfType((QgsProcessingParameterFeatureSource, options = self.dialog.getAvailableValuesOfType((QgsProcessingParameterFeatureSource,
QgsProcessingParameterVectorLayer, QgsProcessingParameterVectorLayer,
Expand Down

0 comments on commit 7451422

Please sign in to comment.