Skip to content
Permalink
Browse files

set the parameter table field optional

  • Loading branch information
Gustry committed May 7, 2015
1 parent fd7375e commit 3e3978333d8e06e51694a89cf4f5c63401c7d34d
Showing with 10 additions and 4 deletions.
  1. +10 −4 python/plugins/processing/algs/qgis/LinesIntersection.py
@@ -50,10 +50,16 @@ def defineCharacteristics(self):
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_LINE]))
self.addParameter(ParameterVector(self.INPUT_B,
self.tr('Intersect layer'), [ParameterVector.VECTOR_TYPE_LINE]))
self.addParameter(ParameterTableField(self.FIELD_A,
self.tr('Input unique ID field'), self.INPUT_A))
self.addParameter(ParameterTableField(self.FIELD_B,
self.tr('Intersect unique ID field'), self.INPUT_B))
self.addParameter(ParameterTableField(
self.FIELD_A,
self.tr('Input unique ID field'),
self.INPUT_A,
optional=True))
self.addParameter(ParameterTableField(
self.FIELD_B,
self.tr('Intersect unique ID field'),
self.INPUT_B,
optional=True))

self.addOutput(OutputVector(self.OUTPUT, self.tr('Output layer')))

0 comments on commit 3e39783

Please sign in to comment.
You can’t perform that action at this time.