Skip to content

Commit

Permalink
selectionChanged only applicable to vector layers
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Feb 24, 2024
1 parent d35d06a commit ea50485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wps_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def setLayerToQgsFieldComboBox(self):
field_cmb_box = widget
if isinstance(widget, QgsMapLayerComboBox):
layer = widget.currentLayer()
if layer is not None:
if layer is not None and layer.type() == QgsMapLayer.VectorLayer:
layer.selectionChanged.connect(self.onLayerSelection)
if layer is not None and field_cmb_box is not None:
field_cmb_box.setLayer(layer)
Expand Down

0 comments on commit ea50485

Please sign in to comment.