selectionChanged() SIGNAL getting connected and disconnected on raster layers in qgsmapcanvas.cpp
|Reported by:||aaronr||Owned by:||aaronr|
|Must Fix for Release:||No||Platform:||All|
|Platform Version:||Awaiting user input:||no|
In qgsmapcanvas.cpp in QgsMapCanvas::setLayerSet a disconnect and connect call to selectionChanged signal are being made on the map layer set, but some of those layers can be raster layers. selectionChanged() is a signal that only vector layers can emit.
This bug causes warning messages to appear when calling setLayerSet via the python bindings with a layer set that contains rasters.
The solution is to wrap the disconnect and connect calls with logic to test if the layer is a vector layer.