Bug 265489 - Dolphin is showing double file size when folder and 'folder items' are selected when 'expand folders' option is enabled
Summary: Dolphin is showing double file size when folder and 'folder items' are select...
Status: RESOLVED FIXED
Alias: None
Product: kfile
Classification: Applications
Component: kpropertiesdialog (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords: reproducible
: 150337 195597 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-05 09:59 UTC by Mohd Asif Ali Rizwaan
Modified: 2018-06-15 02:37 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.