Skip to content

Commit

Permalink
[dbmanager] Fix exception when browsing project layers
Browse files Browse the repository at this point in the history
(cherry picked from commit 149726c)
  • Loading branch information
nyalldawson committed Nov 10, 2018
1 parent 49e5f4f commit 25faaa0
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
Original file line number Diff line number Diff line change
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 25faaa0

Please sign in to comment.