Skip to content

Commit 369b32e

Browse files
committedMay 28, 2012
update field list on each layer list update (fix #5655)
1 parent a45e5b1 commit 369b32e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎python/plugins/fTools/tools/doMeanCoords.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ def __init__(self, iface, function):
5050

5151
def populateLayers( self ):
5252
layers = ftools_utils.getLayerNames([QGis.Point, QGis.Line, QGis.Polygon])
53-
QObject.disconnect(self.inShape, SIGNAL("currentIndexChanged(QString)"), self.update)
53+
self.inShape.blockSignals(True)
5454
self.inShape.clear()
55+
self.inShape.blockSignals(False)
5556
self.inShape.addItems(layers)
56-
QObject.connect(self.inShape, SIGNAL("currentIndexChanged(QString)"), self.update)
5757

5858
def updateUi(self):
5959
if self.function == 1:

0 commit comments

Comments
 (0)
Please sign in to comment.