Skip to content
Permalink
Browse files

[dbmanager] fix signal/slot connection

(cherry picked from commit 2134112)
  • Loading branch information
alexbruy committed Aug 2, 2016
1 parent aef8703 commit cb02b9f892b909b386ef72e0c18ccab64384663f
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/db_manager/db_manager_plugin.py
@@ -54,7 +54,7 @@ def initGui(self):
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)

0 comments on commit cb02b9f

Please sign in to comment.
You can’t perform that action at this time.