[processing] Fix missing default value for Select by Expression

Fixes #30218
This commit is contained in:
Nyall Dawson 2019-06-16 15:22:10 +10:00
parent 52d22b8050
commit b8dcafbf10

View File

@ -62,7 +62,7 @@ class SelectByExpression(QgisAlgorithm):
self.addParameter(QgsProcessingParameterExpression(self.EXPRESSION,
self.tr('Expression'), parentLayerParameterName=self.INPUT))
self.addParameter(QgsProcessingParameterEnum(self.METHOD,
self.tr('Modify current selection by'), self.methods, 0))
self.tr('Modify current selection by'), self.methods, defaultValue=0))
self.addOutput(QgsProcessingOutputVectorLayer(self.OUTPUT, self.tr('Selected (attribute)')))