<div dir="auto"><div>This has been fixed already.<div dir="auto"><br></div><div dir="auto">Thanks L<span style="font-family:sans-serif">oïc,</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">Alex</span></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">A Seg, 22/07/2019, 00:13, Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, 21 Jul 2019 at 18:29, Matthias Kuhn <<a href="mailto:matthias@opengis.ch" target="_blank" rel="noreferrer">matthias@opengis.ch</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> Is there any other software with this behavior to "save only selected"? Or a use case where this is desirable?<br>
><br>
> 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>
<br>
+1 to that. If a user really needs to save only a selected portion I<br>
think it's fine to require them to copy that part to a text editor and<br>
save from there. I'd rather not overload the UI with two options "save<br>
all"/"save selected bit only", it's just overkill.<br>
<br>
Nyall<br>
<br>
<br>
><br>
> Regards<br>
><br>
> Matthias<br>
><br>
> On 7/21/19 10:19 AM, Alexandre Neto wrote:<br>
><br>
> I agree that it can be a feature, but needs to be more explicit to the user.<br>
><br>
> 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.<br>
><br>
> Documentation alone won't be enough IMHO. So, maybe a check box with "Save selected only?<br>
><br>
> Anyway, thanks for making saving available.<br>
><br>
> Alex<br>
><br>
> A Sáb, 20/07/2019, 18:27, Loïc Bartoletti <<a href="mailto:lbartoletti@tuxfamily.org" target="_blank" rel="noreferrer">lbartoletti@tuxfamily.org</a>> escreveu:<br>
>><br>
>> Hi Alexandre,<br>
>><br>
>> It's my bad, I used _getSqlQuery insted of self.editSql.text().<br>
>><br>
>> 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.<br>
>><br>
>> Regards,<br>
>><br>
>> Loïc<br>
>><br>
>> Le 20/07/2019 à 17:04, Alexandre Neto a écrit :<br>
>><br>
>> Hi,<br>
>><br>
>> 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.<br>
>><br>
>> 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.<br>
>><br>
>> But, when I turn of my project and open it again, surprise surprise, only the selected part is in the Query.<br>
>><br>
>> Bug or feature?<br>
>><br>
>> Alex Neto<br>
>><br>
>> _______________________________________________<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><br>
>><br>
>> _______________________________________________<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><br>
><br>
><br>
> _______________________________________________<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><br>
><br>
> _______________________________________________<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><br>
_______________________________________________<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></div></div>