Skip to content
Permalink
Browse files

[processing] create widget correctly from wrapper when in batch mode

  • Loading branch information
slarosa committed Jan 28, 2018
1 parent 550c74e commit ebb725ec048861cf4c95bb02923bf443101251ca
Showing with 6 additions and 2 deletions.
  1. +6 −2 python/plugins/processing/gui/wrappers.py
@@ -761,7 +761,9 @@ def createWidget(self):
self.combo.currentTextChanged.connect(lambda: self.widgetValueHasChanged.emit(self))
return widget
elif self.dialogType == DIALOG_BATCH:
return BatchInputSelectionPanel(self.param, self.row, self.col, self.dialog)
widget = BatchInputSelectionPanel(self.param, self.row, self.col, self.dialog)
widget.valueChanged.connect(lambda: self.widgetValueHasChanged.emit(self))
return widget
else:
self.combo = QComboBox()
layers = self.getAvailableLayers()
@@ -1274,7 +1276,9 @@ def createWidget(self):
return widget

elif self.dialogType == DIALOG_BATCH:
return BatchInputSelectionPanel(self.param, self.row, self.col, self.dialog)
widget = BatchInputSelectionPanel(self.param, self.row, self.col, self.dialog)
widget.valueChanged.connect(lambda: self.widgetValueHasChanged.emit(self))
return widget
else:
self.combo = QComboBox()
self.combo.setEditable(True)

0 comments on commit ebb725e

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