Skip to content

Commit

Permalink
[processing] create widget correctly from wrapper when in batch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Jan 28, 2018
1 parent 550c74e commit ebb725e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/plugins/processing/gui/wrappers.py
Expand Up @@ -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()
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ebb725e

Please sign in to comment.