Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
db manager: fix layer custom action
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+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') |
|
|