<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<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="moz-cite-prefix">On 7/21/19 10:19 AM, Alexandre Neto
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CA+H0G_EgPYfn=7VuZ=bW842R8mxRxQizMmp5ECEaFFzn4TbAFQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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"
target="_blank" rel="noreferrer" moz-do-not-send="true">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" target="_blank"
moz-do-not-send="true">_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_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_7263121919806318418m_-2844205611132673370mimeAttachmentHeader"></fieldset>
<pre class="m_7263121919806318418m_-2844205611132673370moz-quote-pre">_______________________________________________
QGIS-Developer mailing list
<a class="m_7263121919806318418m_-2844205611132673370moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank" moz-do-not-send="true">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="m_7263121919806318418m_-2844205611132673370moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="m_7263121919806318418m_-2844205611132673370moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank" moz-do-not-send="true">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" target="_blank"
moz-do-not-send="true">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-developer"
rel="noreferrer noreferrer noreferrer" target="_blank"
moz-do-not-send="true">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" target="_blank"
moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
</body>
</html>