<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 23 July 2023, 5:39 pm Richard Duivenvoorde via QGIS-User, <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Roxo,<br>
<br>
You are right, I can confirm this with a very recent build of QGIS:<br>
<br>
- with extension we ask for confirmation of overwriting<br>
- without extension we silently overwrite an old file<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">It's actually an operating system (well, gtk library) issue. The same thing happens in other apps too on that same platform.</div><div dir="auto"><br></div><div dir="auto">Nyall</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Please file an issue (<a href="https://github.com/qgis/QGIS/issues" rel="noreferrer noreferrer" target="_blank">https://github.com/qgis/QGIS/issues</a>), this seems easily fixable.<br>
See <a href="https://qgis.org/en/site/getinvolved/development/bugreporting.html#bugs-features-and-issues" rel="noreferrer noreferrer" target="_blank">https://qgis.org/en/site/getinvolved/development/bugreporting.html#bugs-features-and-issues</a><br>
<br>
Regards,<br>
<br>
Richard Duivenvoorde<br>
<br>
On 7/22/23 20:21, Fernando M. Roxo da Motta via QGIS-User wrote:<br>
> <br>
> <br>
>    Hi all,<br>
> <br>
>    Today I was exporting some QGis projects as PNG images<br>
> (project>import/export>export map to image).   At certain point I made<br>
> a mistake and repeated the name of the previous map, and QGis happily<br>
> overwrote the previous image, without asking before.  I tried to repeat<br>
> the action giving the full name of the file (map10.png) and QGis asked<br>
> for confirmation.    The difference was that the first time I gave jjust<br>
> a name, without the "extension" .png.<br>
> <br>
>    It seems that even if QGis will give the default "extension" to the<br>
> filename, it does not verify the prior existence of the file after it<br>
> attach the "extension".<br>
> <br>
>    This was in a QGis 3.26.0 on Linux Xubuntu 20.04.   I know that both<br>
> the QGis and system are kind of old, but if this "feature" is present<br>
> in current versions it can be cumbersome.<br>
> <br>
> <br>
> <br>
>    Roxo<br>
> <br>
<br>
_______________________________________________<br>
QGIS-User mailing list<br>
<a href="mailto:QGIS-User@lists.osgeo.org" target="_blank" rel="noreferrer">QGIS-User@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div></div></div>