Skip to content
Permalink
Browse files
db manager: fix layer custom action
  • Loading branch information
jef-n committed May 18, 2017
1 parent 68b990b commit d1cc574a4fce0c54a43765053e40361f19a68c62
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/db_manager/db_manager_plugin.py
@@ -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')

0 comments on commit d1cc574

Please sign in to comment.