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

Richard Duivenvoorde rdmailings at duif.net
Wed Jun 4 08:00:40 PDT 2025


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



More information about the QGIS-Developer mailing list