<div dir="ltr"><div><div><div><div><div><div><div><div>Hi,<br><br></div>we have a qgis project with many wms layers.<br><br></div>Unfortunately qgis 2.2 when start if the internet connection is unavailable <br></div>(because the user forgot to set the proxy as real example).<br>
</div>Qgis remove the wms layers from the project and so they are lost.<br><br></div>The best option surely should be that qgis don't remove the wls layer but instead disable them. But I understand this is not a good option because we nedd absolutely work now with the qgis 2.2.<br>
<br></div>So a workaround we are try-ing to test is to add the wms layer in a startup phase using the OpenProject macro.<br><br></div>I'm not a python expert. <br>So I'm searching the info to write a simple python code to test if a connection internet is available and if ok add a wms layer.<br>
<br></div>Any info is welcome.<br clear="all"><div><div><div><div><div><div><div><div><div><div><div><br></div><div>thx,<br><br></div><div>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br>

</div></div></div></div></div></div></div></div></div></div></div></div>