mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[dbmanager] fix signal/slot connection
This commit is contained in:
parent
f5b11d9130
commit
2134112aab
@ -54,7 +54,7 @@ class DBManagerPlugin:
|
||||
self.layerAction = QAction(QIcon(":/db_manager/icon"), QApplication.translate("DBManagerPlugin", "Update Sql Layer"),
|
||||
self.iface.mainWindow())
|
||||
self.layerAction.setObjectName("dbManagerUpdateSqlLayer")
|
||||
QObject.connect(self.layerAction, SIGNAL("triggered()"), self.onUpdateSqlLayer)
|
||||
self.layerAction.triggered.connect(self.onUpdateSqlLayer)
|
||||
self.iface.legendInterface().addLegendLayerAction(self.layerAction, "", "dbManagerUpdateSqlLayer", QgsMapLayer.VectorLayer, False)
|
||||
for l in QgsMapLayerRegistry.instance().mapLayers().values():
|
||||
self.onLayerWasAdded(l)
|
||||
|
Loading…
x
Reference in New Issue
Block a user