<div dir="ltr">Hi all (and Martin D.),<div><br></div><div><br></div><div style>I've been trying to reproduce the instructions given here [1] for moving layers. It seems that the code doesn't work if the layer to be moved is inside a group.</div><div style><br></div><div style>Specifically, trying to move a layer that is inside a group, I can add the clonned layer to the layer tree but I cannot get the original layer removed, i.e., the following command doesn't work:</div><div style><br></div><div style>   root.removeChildNode( originalLayer )<br></div><div style><div><br></div><div style>It doesn't throw any message nor change the map/ToC status.</div><div><br></div></div><div style><br></div><div style>Can you reproduce the problem? I'm using QGIS 2.6.1 on Ubuntu.</div><div style><br></div><div><br></div><div>Regards, </div><div><br></div><div>Germán Carrillo<br clear="all"><div>--</div><div>[1] <a href="http://www.lutraconsulting.co.uk/blog/2014/07/25/qgis-layer-tree-api-part-2/">http://www.lutraconsulting.co.uk/blog/2014/07/25/qgis-layer-tree-api-part-2/</a> </div><div><br></div>-- <br><div class="gmail_signature">-----------<br>   |\__  <br>(:>__)(<br>   |/    <br><br>Soluciones Geoinformáticas Libres                            <br><a href="http://geotux.tuxfamily.org/">http://geotux.tuxfamily.org/</a><br><a href="http://twitter.com/GeoTux2">http://twitter.com/GeoTux2</a><br></div>
</div></div>