GtkFileChooserDialog Unexpectedly Overwrites Another File
Steps to reproduce
- You have two files named
file1.txt
andfile2.txt
in the same directory. - Open an editor (for example, gedit), type something, then press
Save
, so aGtkFileChooserDialog
(save dialog) pops up. - In this dialog, choose
file1.txt
, and press Save. So it will ask you whether you want to overwritefile1.txt
. - Choose
Replace
, and immediately click onfile2.txt
before the dialog disappears. - Now,
file2.txt
is overwritten, instead offile1.txt
.
Current behavior
GtkFileChooserDialog
allows a user to choose another file even after he clicks Replace
button, which results in the application overwriting another file unexpectedly, causing data loss.
Expected outcome
After a user clicks on Replace
button, GtkFileChooserDialog
should prevent the user from choosing another file in the list. Today I "double clicked" the mouse on the Replace
button, then it overwrote another file unexpectedly and I lost all my data in it.
Version information
GTK version: 3-3.24.11
OS: Fedora 30
GNOME version: 3.32.2