Bug 290736 - Wrong current item after deleting files
Summary: Wrong current item after deleting files
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (show other bugs)
Version: 1.99
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-05 19:51 UTC by Peter Penz
Modified: 2013-01-14 19:02 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 Peter Penz 2012-01-05 19:51:24 UTC
Version:           1.99 (using Devel) 
OS:                Linux

When deleting some files the current item is wrong.

Reproducible: Always

Steps to Reproduce:
- Switch to the details view (the issue occurs also in other views, but is easier to track in the details view) with at least 10 items
- Select the first item with the (+) selector
- Select item number 3 by pressing SHIFT and clicking on the item
  (-> item number 3 gets the current item)
- Press "Delete"

Actual Results:  
The previous item number 6 gets the new current item (as it actually has the index 3 now)

Expected Results:  
The previous item number 4 should get the new current item (= item 1 after the deletion)
Comment 1 Lilian A. Moraru 2012-02-27 17:31:13 UTC
Using Kubuntu 11.10, KDE 4.8, Dolphin 2.0. I confirm the bug. After deleting press Space Bar, you will see that it doesn't select the first element in the list.
Comment 2 Jeroen van Meeuwen (Kolab Systems) 2012-08-24 16:19:57 UTC
Resetting assignee to default as per bug #305719
Comment 3 Emmanuel Pescosta 2013-01-12 19:49:09 UTC
Please test this patch: https://git.reviewboard.kde.org/r/108356/

Thanks :)
Comment 4 Emmanuel Pescosta 2013-01-14 19:02:52 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