We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent f3632e8 commit ead85b1Copy full SHA for ead85b1
python/plugins/db_manager/dlg_import_vector.py
@@ -132,7 +132,7 @@ def populateLayers(self):
132
for nodeLayer in QgsProject.instance().layerTreeRoot().findLayers():
133
layer = nodeLayer.layer()
134
# TODO: add import raster support!
135
- if layer.type() == QgsMapLayerType.VectorLayer:
+ if layer is not None and layer.type() == QgsMapLayerType.VectorLayer:
136
self.cboInputLayer.addItem(layer.name(), layer.id())
137
138
def deleteInputLayer(self):
0 commit comments