mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -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))
|
self.combo.currentTextChanged.connect(lambda: self.widgetValueHasChanged.emit(self))
|
||||||
return widget
|
return widget
|
||||||
elif self.dialogType == DIALOG_BATCH:
|
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:
|
else:
|
||||||
self.combo = QComboBox()
|
self.combo = QComboBox()
|
||||||
layers = self.getAvailableLayers()
|
layers = self.getAvailableLayers()
|
||||||
@ -1274,7 +1276,9 @@ class VectorLayerWidgetWrapper(WidgetWrapper):
|
|||||||
return widget
|
return widget
|
||||||
|
|
||||||
elif self.dialogType == DIALOG_BATCH:
|
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:
|
else:
|
||||||
self.combo = QComboBox()
|
self.combo = QComboBox()
|
||||||
self.combo.setEditable(True)
|
self.combo.setEditable(True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user