mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] create widget correctly from wrapper when in batch mode
This commit is contained in:
parent
550c74e106
commit
ebb725ec04
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user