<div dir="auto">There is already a ticket: <a href="https://github.com/qgis/QGIS/issues/30616">https://github.com/qgis/QGIS/issues/30616</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le dim. 21 juil. 2019 à 11:11, Paolo Cavallini <<a href="mailto:cavallini@faunalia.it">cavallini@faunalia.it</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">Hi all.<br>I agree, the default should be save all. Having the option of savings only selected could be handy.<br>Cheers.<br><br><div class="gmail_quote">On 21 July 2019 10:29:21 CEST, Matthias Kuhn <<a href="mailto:matthias@opengis.ch" target="_blank" rel="noreferrer">matthias@opengis.ch</a>> wrote:<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<p>Hi,</p>
<p>Is there any other software with this behavior to "save only
selected"? Or a use case where this is desirable?<br>
</p>
<p>From top of my mind I can't find anything and I think all our
other editors always save the full text, regardless of selection.<br>
</p>
<p>Regards</p>
<p>Matthias<br>
</p>
<div class="m_-2579417997224642385moz-cite-prefix">On 7/21/19 10:19 AM, Alexandre Neto
wrote:<br>
</div>
<blockquote type="cite">
<div dir="auto">I agree that it can be a feature, but needs to be
more explicit to the user.
<div dir="auto"><br>
</div>
<div dir="auto">My problem is that I was creating several
instructions and running them one by one. Then, in the end, I
wanted to save everything and didn't realize that there was a
selection.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Documentation alone won't be enough IMHO. So,
maybe a check box with "Save selected only?
<div dir="auto"><br>
</div>
<div dir="auto">Anyway, thanks for making saving available.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Alex</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">A Sáb, 20/07/2019, 18:27, Loïc
Bartoletti <<a href="mailto:lbartoletti@tuxfamily.org" rel="noreferrer noreferrer" target="_blank">lbartoletti@tuxfamily.org</a>>
escreveu:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hi Alexandre,</p>
<p>It's my bad, I used <a href="https://github.com/lbartoletti/QGIS/blob/master/python/plugins/db_manager/dlg_sql_window.py#L557" rel="noreferrer noreferrer noreferrer" target="_blank">_getSqlQuery</a> insted of
self.editSql.text(). <br>
</p>
<p>For me a feature must be documented and for this one the
user must have the choice between the full text or the
selected part. So it's a bug or I add this option and the
doc.</p>
<p>Regards,</p>
<p>Loïc<br>
</p>
<div class="m_-2579417997224642385m_7263121919806318418m_-2844205611132673370moz-cite-prefix">Le
20/07/2019 à 17:04, Alexandre Neto a écrit :<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi,</div>
<div><br>
</div>
<div>I had some frustrations with the DB Manager save
query functionality. At some point I finally
understood that, if there is some selected code, only
that part is saved.</div>
<div><br>
</div>
<div>To me it's weird, because when you save, the rest
of the code is maintained in the SQL editor, and the
name of the query is showned in the topo.</div>
<div><br>
</div>
<div>But, when I turn of my project and open it again,
surprise surprise, only the selected part is in the
Query.</div>
<div><br>
</div>
<div>Bug or feature?</div>
<div><br>
</div>
<div>Alex Neto<br>
</div>
</div>
<br>
<fieldset class="m_-2579417997224642385m_7263121919806318418m_-2844205611132673370mimeAttachmentHeader"></fieldset>
<pre class="m_-2579417997224642385m_7263121919806318418m_-2844205611132673370moz-quote-pre">_______________________________________________
QGIS-Developer mailing list
<a class="m_-2579417997224642385m_7263121919806318418m_-2844205611132673370moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org" rel="noreferrer noreferrer noreferrer" target="_blank">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="m_-2579417997224642385m_7263121919806318418m_-2844205611132673370moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="m_-2579417997224642385m_7263121919806318418m_-2844205611132673370moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
</div>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" rel="noreferrer noreferrer noreferrer" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer noreferrer 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 noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote>
</div>
<br>
<fieldset class="m_-2579417997224642385mimeAttachmentHeader"></fieldset>
<pre class="m_-2579417997224642385moz-quote-pre">_______________________________________________
QGIS-Developer mailing list
<a class="m_-2579417997224642385moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank" rel="noreferrer">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="m_-2579417997224642385moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="m_-2579417997224642385moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
</blockquote></div><br>-- <br>Sorry for being short</div>_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank" rel="noreferrer">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer 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 noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div>