GtkFileChooser keeps the subdirectory selected when exiting it
Steps to reproduce
- Create a directory
outer
with a subdirectoryinner
; - Open a software which can save a file and which will use GTK File Chooser for that.
- Click the save button;
- In the GtkFileChooser dialog enter the
outer
directory; - Click on the
inner
directory; - Click on the "Save" button, instead of saving it opens the
inner
directory; - Go up to the
outer
directory and try to save the file there without changing the file name.
Current behavior
The inner
directory gets opened by the dialog. When going up again to the outer
directory, the inner
directory stays selected.
Expected outcome
I would expect that when I get out from inner
to outer
, inner
is not selected anymore, so that I can save the file in outer
when clicking on "Save" instead of entering inner
again.
I suppose that this behaviour has been implemented thinking at the "Open" function, but it's annoying for the "Save" function.
The easier way to fix this, in my opinion, is to not keep selected inner
when going up from inner
to outer
.
Version information
Confirmed on both an updated Arch Linux with GTK 3.24.24 and on Ubuntu 20.04.1 with GTK 3.24.20. On Ubuntu, the software versions were gedit 3.36.2, LibreOffice 6.4.6.2 and Firefox 84.0.2. On Arch, the software versions were gedit 3.38.1, LibreOffice 7.0.4.2 and Firefox 84.0.2.