GNOME Bugzilla – Bug 154709
don't use the cursor for preview
Last modified: 2014-10-19 21:57:12 UTC
The file chooser shouldn't use the treeview cursor for updating the preview, especially not in a selection changed handler. There are a couple of bugs caused by the treeview updating the cursor position and the selection in different orders.
If it used the selection instead of the cursor, previews won't work with multiple selections.
See bug #132255 - this is why things got changed to use the cursor rather than just the selection. It does refer to multiple selection.
What about this? In single selection mode, just use the selected row. In multiple selection mode, - If there is one and only one row selected, use that. - If there is more than one row selected and the cursor is on a selected row, use that. - If the cursor is not on a selected row, don't display a preview.
See the related bug 143825 and bug 319525
*** Bug 540760 has been marked as a duplicate of this bug. ***
*** Bug 738735 has been marked as a duplicate of this bug. ***