Closed langeroo closed 4 years ago
Remove mMapLayerComboBox.clear() fix the problem of None Layer. If there are not raster layers loaded, DEMto3D does not start, so I keep mMapLayerComboBox.currentLayer()
Besides I add a filter to exclude wms layers from mMapLayerComboBox
removed mMapLayerComboBox.clear() because the dropdown was not getting populated properly after that. It was causing the layer to be 'None'
I also removed mMapLayerComboBox.currentLayer() in case there are no active layers that are Rasters. If there are no rasters, the combo box will just be blank, and that's fine. Better than the plugin crashing.
I've tested on QGIS 3.14 for MacOS.