Navigation Menu

Skip to content

Commit

Permalink
db manager: fix layer custom action
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed May 18, 2017
1 parent 68b990b commit d1cc574
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 @@ -82,7 +82,7 @@ def onLayerWasAdded(self, aMapLayer):
uri = QgsDataSourceUri(aMapLayer.source())
table = uri.table()
if table.startswith('(') and table.endswith(')'):
self.addCustomActionForLayer(self.layerAction, aMapLayer)
self.iface.addCustomActionForLayer(self.layerAction, aMapLayer)
# virtual has QUrl source
# url = QUrl(QUrl.fromPercentEncoding(l.source()))
# url.queryItemValue('query')
Expand Down

0 comments on commit d1cc574

Please sign in to comment.