Skip to content

Commit 4f096a6

Browse files
committedJun 27, 2017
Feature source parameters cannot be used for vector layer algorithm
parameters in models There's not a 1:1 correlation here - vector layers can be used as inputs for sources, but sources cannot be used when a full vector layer is required.
1 parent e171fe3 commit 4f096a6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
 

‎python/plugins/processing/gui/wrappers.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,16 +1077,12 @@ def createWidget(self):
10771077
return BatchInputSelectionPanel(self.param, self.row, self.col, self.dialog)
10781078
else:
10791079
self.combo = QComboBox()
1080-
layers = self.dialog.getAvailableValuesOfType(QgsProcessingParameterRasterLayer, QgsProcessingOutputRasterLayer)
10811080
self.combo.setEditable(True)
1082-
tables = self.dialog.getAvailableValuesOfType(QgsProcessingParameterVectorLayer, OutputTable)
1083-
layers = self.dialog.getAvailableValuesOfType(QgsProcessingParameterFeatureSource, QgsProcessingOutputVectorLayer)
1081+
tables = self.dialog.getAvailableValuesOfType(QgsProcessingParameterVectorLayer, QgsProcessingOutputVectorLayer)
10841082
if self.param.flags() & QgsProcessingParameterDefinition.FlagOptional:
10851083
self.combo.addItem(self.NOT_SELECTED, None)
10861084
for table in tables:
10871085
self.combo.addItem(self.dialog.resolveValueDescription(table), table)
1088-
for layer in layers:
1089-
self.combo.addItem(self.dialog.resolveValueDescription(layer), layer)
10901086

10911087
widget = QWidget()
10921088
layout = QHBoxLayout()

0 commit comments

Comments
 (0)
Please sign in to comment.