[QGIS-Developer] Copy layer vs Duplicate layer ???

Paulo van Breugel p.vanbreugel at gmail.com
Wed Jun 4 09:55:20 PDT 2025


Should there be 2 context menu items for the same thing. --> rather not, it is confusing.

But otherwise, I would say that the current behaviour makes sense: when clicking a layer in the Layers window, the duplicate option in the context menu should duplicate the map layer, not the actual data. 

I would expect the latter behaviour in the context menu for data files in the Browser window. And than it probably should be called 'copy data' or something along those lines?

Just my 2ct as user.




On June 4, 2025 5:00:40 PM GMT+02:00, Richard Duivenvoorde via QGIS-Developer <qgis-developer at lists.osgeo.org> wrote:
>Hi People,
>
>A user had an issue in which she 'copied' a layer, edited it and then found out she edited the original data...
>
>My response was: yes (join the club ;-)) it is called 'duplicate', but it only duplicates the layer, NOT the data.
>
>Then she responded: but I did not use 'duplicate', I used 'copy layer' ...
>
>Then I found out they indeed both exist in the context menu, and actually do the same thing... ???
>(tested with a gpkg and a shapefile)
>
>So my questions:
>- should there be 2 context menu items for the same thing (the always tricky 'duplicate' which (in my view) counter-intuitive does not duplicate data)
>- should these 2 functions not behave different?
>
>Regards,
>
>Richard Duivenvoorde
>
>_______________________________________________
>QGIS-Developer mailing list
>QGIS-Developer at lists.osgeo.org
>List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20250604/94303c04/attachment.htm>


More information about the QGIS-Developer mailing list