<html><head></head><body><div dir="auto">Should there be 2 context menu items for the same thing. --> rather not, it is confusing.<br><br>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. <br><br>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?<br><br>Just my 2ct as user.<br><br><br></div><br><br><div class="gmail_quote"><div dir="auto">On June 4, 2025 5:00:40 PM GMT+02:00, Richard Duivenvoorde via QGIS-Developer <qgis-developer@lists.osgeo.org> wrote:</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail"><div dir="auto">Hi People,<br><br>A user had an issue in which she 'copied' a layer, edited it and then found out she edited the original data...<br><br>My response was: yes (join the club ;-)) it is called 'duplicate', but it only duplicates the layer, NOT the data.<br><br>Then she responded: but I did not use 'duplicate', I used 'copy layer' ...<br><br>Then I found out they indeed both exist in the context menu, and actually do the same thing... ???<br>(tested with a gpkg and a shapefile)<br><br>So my questions:<br>- 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)<br>- should these 2 functions not behave different?<br><br>Regards,<br><br>Richard Duivenvoorde<hr>QGIS-Developer mailing list<br>QGIS-Developer@lists.osgeo.org<br>List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></div></pre></blockquote></div></body></html>