Skip to content

Commit 0a2d75f

Browse files
committed
better fix for #5010
1 parent 849a561 commit 0a2d75f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/plugins/fTools/tools/doIntersectLines.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ def __init__(self, iface):
5151

5252
def populateLayers( self ):
5353
layers = ftools_utils.getLayerNames([QGis.Line])
54-
QObject.disconnect(self.inLine1, SIGNAL("currentIndexChanged(QString)"), self.update1)
55-
QObject.disconnect(self.inLine2, SIGNAL("currentIndexChanged(QString)"), self.update2)
54+
self.inLine1.blockSignals( True )
55+
self.inLine2.blockSignals( True )
5656
self.inLine1.clear()
5757
self.inLine2.clear()
58-
QObject.connect(self.inLine1, SIGNAL("currentIndexChanged(QString)"), self.update1)
59-
QObject.connect(self.inLine2, SIGNAL("currentIndexChanged(QString)"), self.update2)
58+
self.inLine1.blockSignals( False )
59+
self.inLine2.blockSignals( False )
6060
self.inLine1.addItems(layers)
6161
self.inLine2.addItems(layers)
6262

0 commit comments

Comments
 (0)