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

This commit is contained in:
Salvatore Larosa 2018-01-28 22:11:51 +01:00
parent 550c74e106
commit ebb725ec04

View File

@ -761,7 +761,9 @@ class MapLayerWidgetWrapper(WidgetWrapper):
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 @@ class VectorLayerWidgetWrapper(WidgetWrapper):
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)