Bug 182239

Summary: Shift+Click selection of multiple files in open file dialog broken
Product: [Applications] kfile Reporter: Jens Rutschmann <Jens.Rutschmann>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: bflat1, bschroder, mark, nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Screenshot showing mistakenly added files.

Description Jens Rutschmann 2009-01-29 01:04:32 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Unlisted Binary Package

When trying to select multiple files in the file open dialog (for example in ark when adding files to an archive) the selection algorithm selects to many files.
More specifically: 
In the file open dialog navigate to a directory containing at least that much files to get two columns in the view.
In the left column click a file (let's call it file 1) with a short name (some files above in that column need to have longer names)
Shift-Click any second file (file 2) in another column right of the first selected file.
Then all files between file 1 and 2 will be added to the selection (correct behavior)
Additionally all files above file 1 will be selected if they have longer names than file 1.

See picture for a graphical explanation :-)

This is probably related to the same issue in dolphin, see bug #163451
Comment 1 Jens Rutschmann 2009-01-29 01:07:59 UTC
Created attachment 30686 [details]
Screenshot showing mistakenly added files.

This screenshot has been taken using the kde4daily image.
Comment 2 Christoph Feck 2009-08-12 16:53:51 UTC
Confirmed with current trunk (here files with "short" names between the two clicked files were not selected).
Comment 3 Christoph Feck 2009-08-27 03:28:51 UTC
*** Bug 119936 has been marked as a duplicate of this bug. ***
Comment 4 Christoph Feck 2013-09-08 17:52:32 UTC
*** Bug 324665 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2018-04-09 21:12:24 UTC
Works for me in KDE Frameworks 5.45 (and for that matter, every KF5 version of KIO that I can ever recall using).