Bug 305619 - When deleting/moving multiple files from a folder with a lot of files, the view goes down the list of files in function of the number of files deleted/moved.
Summary: When deleting/moving multiple files from a folder with a lot of files, the vi...
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (show other bugs)
Version: 2.0
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-22 17:47 UTC by mariopr25
Modified: 2013-01-14 19:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.10
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mariopr25 2012-08-22 17:47:27 UTC
When dolphin have opened a folder with a lot of files after deleting/moving some of them the view in dolphin goes down in function of the number of files deleted/moved. 

Reproducible: Always

Steps to Reproduce:
1. Open a folder with a lot of files so that dolphin requires a lot of scroll between the first an the last file, (for example 1000 files named file000 to file999), preferible in detailed view (but it occurs in all of them)
2. select some of the files in whatever mode (for example the first 200 files) and make that the view starts with a given file (for example that the first file of the view was file200)
3. delete/move the selected files (maintaining the actual view).
Actual Results:  
The view will go a number of files more down equal to the number of files deleted/moved (the first file of the view after deleted the first 200 of them was file400)

Expected Results:  
i think that i should see the file200, i mean, in that case the first file in the actual view should be the same file that before erasing the files).

I think that the view shows as first file the file number x before deleted the selected files and, after do it, it tries to show the new file number x in the actual list of files when it should show the file number x-y. where y is the number of files deleted/moved that are in the range [0-x] .
I'm spanish, i'm sorry for my bad english writing.
Comment 1 mariopr25 2012-08-23 09:49:17 UTC
An correction: 
When I said: " I think that the view shows as first file the file number x before deleted the selected files and, after do it, it tries to show the new file number x in the actual list of files when it should show the file number x-y. where y is the number of files deleted/moved that are in the range [0-x] ."

the valor of y should be: the number of files deleted/moved that are in the range [0-x] plus the number of the files deleted/moved at the begin of the view
Comment 2 Frank Reininghaus 2012-08-24 13:57:13 UTC
Thanks for the bug report! I can confirm this issue.
Comment 3 Jeroen van Meeuwen (Kolab Systems) 2012-08-24 16:18:38 UTC
Resetting assignee to default as per bug #305719
Comment 4 Emmanuel Pescosta 2013-01-12 19:48:48 UTC
Please test this patch: https://git.reviewboard.kde.org/r/108356/

Thanks :)
Comment 5 Emmanuel Pescosta 2013-01-14 19:05:11 UTC
Git commit 14e5ba5bfa7cd11f22134f178bb261c56f927eee by Emmanuel Pescosta.
Committed on 14/01/2013 at 20:01.
Pushed by emmanuelp into branch 'KDE/4.10'.

Select right item as current item (first item after the deletion) after deleting files
REVIEW: 108356
FIXED-IN: 4.10

M  +23   -19   dolphin/src/kitemviews/kitemlistselectionmanager.cpp
M  +6    -1    dolphin/src/kitemviews/kitemlistselectionmanager.h
M  +1    -1    dolphin/src/tests/kitemlistselectionmanagertest.cpp

http://commits.kde.org/kde-baseapps/14e5ba5bfa7cd11f22134f178bb261c56f927eee