Skip to content
Permalink
Browse files

fix interpolation data widget

  • Loading branch information
nirvn committed Apr 19, 2018
1 parent e6bebfa commit 39ad0410e226ea0803d5137ec07a217dded4248b
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/algs/qgis/ui/InterpolationDataWidget.py
@@ -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())
@@ -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)

0 comments on commit 39ad041

Please sign in to comment.
You can’t perform that action at this time.