Skip to content

Commit

Permalink
[dbmanager] Fix exception when browsing project layers
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 10, 2018
1 parent 669f6bb commit 149726c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/db_manager/db_plugins/vlayers/connector.py
Expand Up @@ -193,7 +193,7 @@ def getVectorTables(self, schema=None):
reg = VLayerRegistry.instance()
VLayerRegistry.instance().reset()
lst = []
for _, l in QgsProject.instance().mapLayers():
for _, l in QgsProject.instance().mapLayers().items():
if l.type() == QgsMapLayer.VectorLayer:

lname = l.name()
Expand Down

0 comments on commit 149726c

Please sign in to comment.