Skip to content

Commit

Permalink
[dbmanager] fix signal/slot connection
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Aug 2, 2016
1 parent f5b11d9 commit 2134112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/db_manager/db_manager_plugin.py
Expand Up @@ -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)
Expand Down

0 comments on commit 2134112

Please sign in to comment.