Save and export dialogs change file name when tabbing out of "Name" field
Summary:
When exporting, the file name set explicitly in the "Name" field is changed immediately to the name of a different file in the directory upon tabbing out.
I haven't pinned down the exact conditions; I can't replicate the issue reliably, but it happens with relative frequency.
It may happen when there are other similar file types in the export directory; or other files with similar names (beginning with the same characters); or when choosing a different export directory than is saved as the last export dir; or a combination of the 3. It seems to happen in a particular daily workflow I have, but I am having trouble pinpointing it.
Steps to reproduce:
- Open Inkscape
- Open SVG file
- Open the Export panel
- Click the "Browse Export Directory" icon
- Select save directory
- Set file name
- Press "Tab" key
This seems to be sufficient to trigger the issue (when in the save dialog)
- Click a file of the same type that's selected in the bottom file type dropdown (e.g. an existing png when PNG type is selected).
- In the Name field, select the extension and some part of the filename ending.
- Change the ending to a different extension (e.g. change "pic1.png" to "pic2.jpg"). Important: this has to be an extension of an existing file in that directory. (e.g. if a webp doesn't exist in the directory, changing to webp in the filename works as expected.)
- Sometimes the filename changes immediately by itself, sometimes you have to tab out before it changes.
What happened?
File name changes to the name of another in the directory.
What should have happened?
File name stays the same as I set.
Sample attachments:
I will try to get more info and a video of this happening next time I see it. I'd like to track this down, as it's a regular nuisance.
Version info
Inkscape 1.2-beta (1b65182, 2022-04-05) on Ubuntu 21.10