After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 144803 - Selected items not preserved correctly when list re-sorted
Selected items not preserved correctly when list re-sorted
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Views: List View
unspecified
Other Linux
: Normal major
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-06-22 10:14 UTC by Paul Hutchison
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Nautilus list sorting patch (882 bytes, patch)
2004-10-01 01:17 UTC, Jimmy Do
none Details | Review

Description Paul Hutchison 2004-06-22 10:14:22 UTC
Description of Problem:
List view in Nautilus does not correctly preserve
selected items when the list is re-sorted by a
different column.  Reverse-sort works fine (by
clicking the same column again), but when a new
column is clicked, the wrong items are selected.

Steps to reproduce the problem:
1. Go to a folder with several items in and select
the List View.
2. Select an item or multiple items in the list.
3. Click a column heading to sort the list by that
column.  Continue clickingn other columns to get
different selections in the list.

Actual Results:
The wrong items are selected when a new sort
column is selected

Expected Results:
The same items should be selected after a new sort
as were selected before the sort

How often does this happen? 
Most of the time for me, YRMV

Additional Information:
The selection of items appears to be confined to
their file type (either a file or directory).  If
you have 10 directories and 50 files but select
only one directory and 3 files out of that,
regardless how you sort, you'll always be left
with one directory and three files selected (but
they're not necessarily the ones you initially
selected).
Comment 1 Jimmy Do 2004-10-01 01:17:32 UTC
Created attachment 32133 [details] [review]
Nautilus list sorting patch

This patch fixes the problem. Items selected before a sort will now be properly
preseved after a sort. The bug was that the 'new_order' array wasn't correctly
filled in.
Comment 2 Alexander Larsson 2004-10-01 13:02:05 UTC
Patch commited. Thanks a lot!