[Qgis-developer] Re: [Qgis-user] Setting the current active layer programmatically

Germán Carrillo carrillo.german at gmail.com
Mon Dec 7 10:13:36 EST 2009


Hi Luca, maybe you should post your question to developer list.

Germán.

2009/12/7 <luca_manganelli at comune.trento.it>

>
> Hi,
>
> I am writing a plugin that does some editing operations giving the
> possibility to undo operations.
> But the UNDO operation is enabled only if the active layer in the legend is
> equal to edited layer.
>
> We have the:
>
>   qgsinterface::activeLayer ()  but no   qgisinterface::setActiveLayer ().
>
> And the :
>
>  qgsmapcanvas::setCurrentLayer (....)  (then  qgsmapcanvas::refresh ( ) )
> doesn't resolve the problem.
>
> Any hint?
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>

-- 
-----------
  |\__
(:>__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20091207/43280608/attachment.html


More information about the Qgis-developer mailing list