Bug 265489

Summary: Dolphin is showing double file size when folder and 'folder items' are selected when 'expand folders' option is enabled
Product: [Applications] kfile Reporter: Mohd Asif Ali Rizwaan <maarizwan>
Component: kpropertiesdialogAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: nate, pano_90, peter.penz19, redeeman
Priority: NOR Keywords: reproducible
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Mohd Asif Ali Rizwaan 2011-02-05 09:59:15 UTC
Version:           unspecified (using KDE 4.6.0) 
OS:                Linux

I use 'expanded folders' option enabled in Details view and "use double click to launch/execute'

So, if we select a folder, click on > arrow to expand the folder and single click (select) folder items also, the size in properties will be "Total size of Folder+ the item inside the folder"

here's a visual representation


v Folder
L File1.jpg 1mb
L File2.jpg 1mb
L File3.jpg 1mb

Now if we select 'folder' directory and see the folder properties, the size is correctly shown as 3mb.

but, if we also select a file inside the expanded folder (which is also selected), then the file size is added to the folder size, and the properties of 1folder, 1 file selected is reported as 4mb (though it should be 3mb for all 3 files inside the folder, as the files are part of the folder)

Expected Behavior:
Files and sub-Folders when selected within folders should be excluded from the "addition" of size to the total size.



Reproducible: Always




OS: Linux (i686) release 2.6.37-ARCH
Compiler: gcc
Comment 1 Peter Penz 2011-02-05 13:11:46 UTC
(internal note: affects KPropertiesDialog from kdelibs)
Comment 2 Jekyll Wu 2011-12-14 00:06:57 UTC
*** Bug 150337 has been marked as a duplicate of this bug. ***
Comment 3 Jekyll Wu 2012-01-07 11:00:25 UTC
*** Bug 195597 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2018-06-15 02:37:27 UTC
Works for me in KDE Frameworks 5.47.