GNOME Bugzilla – Bug 789111
[PATCH] Renaming a file can make it to loose selection, instead next or previous row is selected
Last modified: 2018-05-02 19:17:57 UTC
When you rename a file in a "sort by name" filechooser, if you alter the start of the name the file will be resort-ed to another position, and selection will not follow it, instead selection will stay in the same row, which now is occupied by another file (the next or previous file of the one we renamed). Filechooser should make sure the renamed file keeps being selected. I will attach a patch to fix this issue.
Created attachment 361764 [details] [review] filechooser: keep file selected after being renamed Because otherwise in a "sort by name" chooser, the new name causes the file to be re-sorted to another row, but the selection stays in the old row which is now occupied by another file. Fixed by keeping track of the renamed file and revealing in our handler for "row-changed" signal, which gets emitted after a file is renamed.
Created attachment 361765 [details] Screencast showing the bug
Created attachment 361766 [details] Screencast showing the bug fixed after patch
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/948.