<div dir="ltr">Hi Alexandre,<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 24, 2013 at 8:23 AM, Alexandre Neto <span dir="ltr"><<a href="mailto:senhor.neto@gmail.com" target="_blank">senhor.neto@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<br><div><span style="line-height:15px;font-size:9pt;background-color:rgb(251,252,253);font-family:monospace,fixed"><br>
</span></div><div><span style="line-height:15px;font-size:9pt;background-color:rgb(251,252,253);font-family:monospace,fixed">After right or left clicking the interface legend in an empty space,</span></div>
<div><span style="line-height:15px;font-size:9pt;background-color:rgb(251,252,253);font-family:monospace,fixed"><br></span></div><div><span style="line-height:15px;font-size:9pt;background-color:rgb(251,252,253);font-family:monospace,fixed">iface.mapCanvas.currentLayer() == None</span></div>

<div><span style="line-height:15px;font-size:9pt;background-color:rgb(251,252,253);font-family:monospace,fixed"><br></span></div><div>Shouldn't <span style="background-color:rgb(251,252,253)"><font color="#000000" face="monospace, fixed"><span style="font-size:9pt;line-height:15px">currentLayerChanged() signal be </span><span style="font-size:12px;line-height:15px">thrown? It does not seem to.</span></font></span><span style="line-height:15px;font-size:9pt;background-color:rgb(251,252,253);font-family:monospace,fixed"><br>

</span></div></div></blockquote><div><br></div><div>I can not verify the same behavior on Mac. As far as I can tell, it is working like that already. In console:<br><br>def print_active_layer(layer):<br></div><div>    print layer<br>
<br>iface.currentLayerChanged["QgsMapLayer *"].connect(print_active_layer)<br><br></div><div>Changing the active layer, including clicking in empty space emits the signal.<br></div><div><br></div><div>A while back, I made several changes that separated the visual feedback between active layer and current selection. For example, you can have no selection and still have an active layer. This is important to how selections should function and is more inline with other GUIs. Active layers are now represented with an underlined layer name.<br>
<br></div><div>For example, clicking on a symbology row, under a layer, will clear the selection (but not the active layer), and clicking empty space with clear both the selection and active layer.<br></div><div><br></div>
<div>Regards,<br><br></div><div>Larry<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span style="background-color:rgb(251,252,253)"><font color="#000000" face="monospace, fixed"><span style="font-size:12px;line-height:15px">Thanks,</span></font></span></div>

<div><span style="background-color:rgb(251,252,253)"><font color="#000000" face="monospace, fixed"><span style="font-size:12px;line-height:15px"><br></span></font></span></div><div><span style="background-color:rgb(251,252,253)"><font color="#000000" face="monospace, fixed"><span style="font-size:12px;line-height:15px">Alexandre Neto</span></font></span></div>

</div>
<br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br></blockquote></div><br></div></div></div>