[QGIS-Developer] Python error when browsing virtual layers in DB Manager

SIGéal sigeal at sigeal.com
Thu Nov 8 23:38:12 PST 2018


Hi,

There is a bug in QGIS 3.4 which prevents from browsing virtual layers 
in DB Manager.

Changing line 196 in \QGIS 
3.4\apps\qgis\python\plugins\db_manager\db_plugins\vlayers\connectors.py 
from :

for _, l in QgsProject.instance().mapLayers():

to (what it was in QGIS 3.2) :

for _, l in list(QgsProject.instance().mapLayers().items()):

seems to solve the problem.

Tested on W7 and W10.

--
Christophe Damour



---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus



More information about the QGIS-Developer mailing list