File tree 1 file changed +4
-4
lines changed
python/plugins/fTools/tools
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,12 @@ def __init__(self, iface):
51
51
52
52
def populateLayers ( self ):
53
53
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 )
56
56
self .inLine1 .clear ()
57
57
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 )
60
60
self .inLine1 .addItems (layers )
61
61
self .inLine2 .addItems (layers )
62
62
You can’t perform that action at this time.
0 commit comments