Skip to content

Commit

Permalink
update field list on each layer list update (fix #5655)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed May 28, 2012
1 parent a45e5b1 commit 369b32e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/fTools/tools/doMeanCoords.py
Expand Up @@ -50,10 +50,10 @@ def __init__(self, iface, function):

def populateLayers( self ):
layers = ftools_utils.getLayerNames([QGis.Point, QGis.Line, QGis.Polygon])
QObject.disconnect(self.inShape, SIGNAL("currentIndexChanged(QString)"), self.update)
self.inShape.blockSignals(True)
self.inShape.clear()
self.inShape.blockSignals(False)
self.inShape.addItems(layers)
QObject.connect(self.inShape, SIGNAL("currentIndexChanged(QString)"), self.update)

def updateUi(self):
if self.function == 1:
Expand Down

0 comments on commit 369b32e

Please sign in to comment.