mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
update field list on each layer list update (fix #5655)
This commit is contained in:
parent
a45e5b19c2
commit
369b32e5e5
@ -50,10 +50,10 @@ class Dialog(QDialog, Ui_Dialog):
|
||||
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user