[Qgis-developer] iface.mapCanvas().setCurrentLayer does not update legend

Richard Duivenvoorde rdmailings at duif.net
Mon Feb 27 04:49:14 PST 2017


On 2017-02-27 13:46, Richard Duivenvoorde wrote:
> iface.mapCanvas().setCurrentLayer(l)
> 
> in a python plugin works (as calling 'currentLayer()' returns l as
> active layer),
> BUT the legend is showing that l is the currentLayer (it does not make
> the background bleu)..

Sorry,

Should be: is NOT showing that l is now currentLayer...

The view is not updated.

Regards,

Richard


More information about the Qgis-developer mailing list