<div dir="ltr">Hi Richard,<div><br></div><div>An enable/disable checkbox that works without deleting the filter would be very nice. Just like data defined symbology where you can disable it without losing the expression.</div><div><br></div><div>Short term workaround for you:</div><div><br></div><div>  TRUE /* [yourfilter here] */</div><div><br></div><div>Matthias</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 10, 2021 at 4:42 PM Richard Duivenvoorde <<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi List,<br>
<br>
When I add a filter to a layer, I often want to temporarily disable that <br>
filter (just to see what the full view is).<br>
<br>
Working a lot with sql scripts recently, in which you comment out (a <br>
part) of a sql query by putting '--' in front of it, I tried that also <br>
in the Query builder, and though it looks like I'm commenting out my <br>
query (the query is greyed-out), it's not working, I get a parsing <br>
error.<br>
<br>
So usability question:<br>
- would other people be interested in temporarily disabling the layer <br>
filter query, or am I the only one :-)<br>
<br>
If yes:<br>
<br>
- should it be implemented by 'commenting' out part of the query?<br>
- or should there be some 'temporarily disable' checkbox in the query <br>
builder)<br>
- should it be a context menu (either the layer, or the little filter <br>
overlay icon in the layermanager)<br>
<br>
Tech question:<br>
- any forseeing issues with such thing?<br>
<br>
Regards,<br>
<br>
Richard Duivenvoorde<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div>