mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-16 00:05:45 -04:00
db manager: fix layer custom action
This commit is contained in:
parent
68b990b3bb
commit
d1cc574a4f
@ -82,7 +82,7 @@ class DBManagerPlugin(object):
|
||||
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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user