Skip to content

Commit 149726c

Browse files
committedNov 10, 2018
[dbmanager] Fix exception when browsing project layers
1 parent 669f6bb commit 149726c

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.