Skip to content

Commit 25faaa0

Browse files
committedNov 10, 2018
[dbmanager] Fix exception when browsing project layers
(cherry picked from commit 149726c)
1 parent 49e5f4f commit 25faaa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/db_manager/db_plugins/vlayers/connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def getVectorTables(self, schema=None):
193193
reg = VLayerRegistry.instance()
194194
VLayerRegistry.instance().reset()
195195
lst = []
196-
for _, l in QgsProject.instance().mapLayers():
196+
for _, l in QgsProject.instance().mapLayers().items():
197197
if l.type() == QgsMapLayer.VectorLayer:
198198

199199
lname = l.name()

0 commit comments

Comments
 (0)
Please sign in to comment.