Skip to content
Permalink
Browse files

Revert "[processing][needs-docs] Add 'not selected' option for option…

…al layer parameters in processing models"
  • Loading branch information
luipir committed Jul 11, 2018
1 parent 1875b02 commit 5f48fa2b768d2b712336ed5503b25419e0ab83c7
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/gui/wrappers.py
@@ -864,10 +864,10 @@ def createWidget(self):
self.combo = QComboBox()
layers = self.getAvailableLayers()
self.combo.setEditable(True)
if self.param.flags() & QgsProcessingParameterDefinition.FlagOptional:
self.combo.addItem(self.NOT_SELECTED, self.NOT_SET_OPTION)
for layer in layers:
self.combo.addItem(self.dialog.resolveValueDescription(layer), layer)
if self.param.flags() & QgsProcessingParameterDefinition.FlagOptional:
self.combo.setEditText("")

widget = QWidget()
layout = QHBoxLayout()

0 comments on commit 5f48fa2

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