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
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to