Bug 213798 - Selection after "move selection to folder" retains previous selection.
Summary: Selection after "move selection to folder" retains previous selection.
Status: RESOLVED UPSTREAM
Alias: None
Product: digikam
Classification: Applications
Component: Albums-MainView (show other bugs)
Version: 1.0.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-09 04:17 UTC by Sean Reifschneider
Modified: 2018-08-11 09:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 1.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Reifschneider 2009-11-09 04:17:55 UTC
Version:           1.0 beta 5 (using KDE 4.3.2)
Compiler:          Stock Fedora 11 compiler 
OS:                Linux
Installed from:    Fedora RPMs

If you have a bunch of images in a folder, then select some of them and drag them to another folder, the view then shows the first item selected.  However, if you shift select you end up with the first item selected, and the item you clicked through the item you clicked in the previous selection are selected.

I'd expect that the first item through the one you click would be selected.

To reproduce:

Have 20 images.
Create a folder.
Click the second image.
Shift-click the 7th image.
Drag the selected images to the folder.
(The image list will now show the first image selected)
Shift-click the 5th image.

Expected result:  The first through the 5th elements would be selected.

Actual result: The first, fifth, sixth and seventh images are selected.
Comment 1 caulier.gilles 2009-11-09 08:08:00 UTC
1.0.0-beta6 will be released today. Can you test with this release...

Gilles Caulier
Comment 2 Sean Reifschneider 2009-11-09 10:47:13 UTC
Easy enough to test with the new version, I will do that.
Comment 3 Sean Reifschneider 2009-11-09 22:57:26 UTC
Confirmed that this still happens with beta6.
Comment 4 Marcel Wiesweg 2009-12-19 17:29:28 UTC
Attempt to reproduce: I have a folder with 20 images. I select image 2..7 and move them to a different folder. Now I have 13 images left, and selected is the image that was previously number 8, now number 2. I shift+click on now-number 5 and have selected four images, now 2..5.
Where is the bug?
Comment 5 Sean Reifschneider 2009-12-20 04:51:04 UTC
If that's true, then this issue must be resolved.

Sean
Comment 6 caulier.gilles 2009-12-20 08:47:17 UTC
As Marcel, I cannot reproduce the problem on my computer too. 

I close this file now. Re-open it if necessary.

Gilles Caulier
Comment 7 Sean Reifschneider 2010-01-12 21:16:17 UTC
This is still an issue in the 1.0.0 release.

I have made a video demonstrating the issue, as it seems the directions I posted haven't been clear enough:

http://www.youtube.com/watch?v=FlvH_nh_OlQ

Again, the issue is that an item is highlighted as if it's selected, and if you shift select another item the start of the selection is actually the previously last selected item, not the one that is shown as highlighted.

Sean
Comment 8 Marcel Wiesweg 2010-01-21 22:03:17 UTC
I could reproduce after a few attempts.
Looking at the code this is an issue deeply inside Qt's QAbstractItemView.
There a private variable about the last pressed position is kept which we cannot directly influence. I do not know why this variable is not adjusted when we set the currently selected item after the dragged items are removed. It very complex code in Qt.