Possible to override unintended file when using "save a copy"
Submitted by Chi Zhang
Link to original bug (#792997)
Description
When using the "Save a Copy..." function, the file selection dialog is properly locked after it prompts the user whether to override the existing file.
However, after the user clicked "Replace", the file selection dialog unlocks briefly before it is closed. During this period, it is still possible to change the selection in the file list (e.g. when the mouse button bounces and accidentally clicks on an item), and an unintended file will get overridden instead, which causes loss of data.
This bug might not be limited to evince, but it is discovered while using it. One way to solve the problem is to hide the selection dialog when prompting the user for overriding, or simply keep the dialog locked unless the user clicks "Cancel", or ignore any changes in selection after prompting the user for overriding.
Version: 3.26.x