Skip to content

Commit

Permalink
better fix for #5010
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Feb 19, 2012
1 parent e72a714 commit 060097b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/plugins/fTools/tools/doIntersectLines.py
Expand Up @@ -51,12 +51,12 @@ def __init__(self, iface):

def populateLayers( self ):
layers = ftools_utils.getLayerNames([QGis.Line])
QObject.disconnect(self.inLine1, SIGNAL("currentIndexChanged(QString)"), self.update1)
QObject.disconnect(self.inLine2, SIGNAL("currentIndexChanged(QString)"), self.update2)
self.inLine1.blockSignals( True )
self.inLine2.blockSignals( True )
self.inLine1.clear()
self.inLine2.clear()
QObject.connect(self.inLine1, SIGNAL("currentIndexChanged(QString)"), self.update1)
QObject.connect(self.inLine2, SIGNAL("currentIndexChanged(QString)"), self.update2)
self.inLine1.blockSignals( False )
self.inLine2.blockSignals( False )
self.inLine1.addItems(layers)
self.inLine2.addItems(layers)

Expand Down

0 comments on commit 060097b

Please sign in to comment.