GtkFileChooserDialog Unexpectedly Overwrites Another File
Steps to reproduce
- You have two files named
file2.txtin the same directory.
- Open an editor (for example, gedit), type something, then press
Save, so a
GtkFileChooserDialog(save dialog) pops up.
- In this dialog, choose
file1.txt, and press Save. So it will ask you whether you want to overwrite
Replace, and immediately click on
file2.txtbefore the dialog disappears.
file2.txtis overwritten, instead of
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.
After a user clicks on
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.
GTK version: 3-3.24.11
OS: Fedora 30
GNOME version: 3.32.2