Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix interpolation data widget
  • Loading branch information
nirvn committed Apr 19, 2018
1 parent 3b59ccc commit 7d43e7b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -57,6 +57,7 @@ def __init__(self):
self.btnAdd.setIcon(QgsApplication.getThemeIcon('/symbologyAdd.svg'))
self.btnRemove.setIcon(QgsApplication.getThemeIcon('/symbologyRemove.svg'))

self.cmbLayers.layerChanged.connect(self.layerChanged)
self.cmbLayers.setFilters(QgsMapLayerProxyModel.VectorLayer)
self.cmbFields.setFilters(QgsFieldProxyModel.Numeric)
self.cmbFields.setLayer(self.cmbLayers.currentLayer())
Expand All @@ -80,8 +81,7 @@ def on_btnRemove_clicked(self):
return
self.layersTree.invisibleRootItem().removeChild(item)

@pyqtSlot(QgsMapLayer)
def on_cmbLayers_layerChanged(self, layer):
def layerChanged(self, layer):
self.chkUseZCoordinate.setEnabled(False)
self.chkUseZCoordinate.setChecked(False)

Expand Down

0 comments on commit 7d43e7b

Please sign in to comment.