Skip to content

Commit 9e0fcfc

Browse files
committed
Fix the listening of changes in the QlistWidget for choosing layer(s) to deform
1 parent 82c47a8 commit 9e0fcfc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dist_cartogram.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ def __init__(self, iface):
114114
self.time_matrix = None
115115

116116
# Params for first tab:
117+
self.dlg.backgroundLayersListWidget.currentRowChanged.connect(self.state_ok_button)
118+
self.dlg.backgroundLayersListWidget.itemChanged.connect(self.state_ok_button)
117119
self.dlg.pointLayerComboBox.setFilters(QgsMapLayerProxyModel.PointLayer)
118120
self.dlg.pointLayerComboBox.layerChanged.connect(self.fill_field_combo_box)
119121

@@ -127,6 +129,8 @@ def __init__(self, iface):
127129
self.dlg.refFeatureComboBox.activated.connect(self.state_ok_button)
128130

129131
# Params for second tab:
132+
self.dlg.backgroundLayersListWidget_2.currentRowChanged.connect(self.state_ok_button)
133+
self.dlg.backgroundLayersListWidget_2.itemChanged.connect(self.state_ok_button)
130134
self.dlg.pointLayerComboBox_2.setFilters(QgsMapLayerProxyModel.PointLayer)
131135
self.dlg.pointLayerComboBox_2.layerChanged.connect(
132136
self.fill_field_combo_box_source

0 commit comments

Comments
 (0)