Skip to content

Commit d1cc574

Browse files
committedMay 18, 2017
db manager: fix layer custom action
1 parent 68b990b commit d1cc574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/db_manager/db_manager_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def onLayerWasAdded(self, aMapLayer):
8282
uri = QgsDataSourceUri(aMapLayer.source())
8383
table = uri.table()
8484
if table.startswith('(') and table.endswith(')'):
85-
self.addCustomActionForLayer(self.layerAction, aMapLayer)
85+
self.iface.addCustomActionForLayer(self.layerAction, aMapLayer)
8686
# virtual has QUrl source
8787
# url = QUrl(QUrl.fromPercentEncoding(l.source()))
8888
# url.queryItemValue('query')

0 commit comments

Comments
 (0)
Please sign in to comment.