Skip to content

Commit

Permalink
[processing] Fix missing default value for Select by Expression
Browse files Browse the repository at this point in the history
Fixes #30218
  • Loading branch information
nyalldawson committed Jun 16, 2019
1 parent 52d22b8 commit b8dcafb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/SelectByExpression.py
Expand Up @@ -62,7 +62,7 @@ def initAlgorithm(self, config=None):
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)')))

Expand Down

0 comments on commit b8dcafb

Please sign in to comment.