Bug 459456

Summary: Status bar shows the free space of my Home when the tab of an unmounted file system is focused
Product: [Applications] dolphin Reporter: Patrick Silva <bugseforuns>
Component: bars: statusAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version: 23.04.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: screenshot

Description Patrick Silva 2022-09-20 18:07:34 UTC
Created attachment 152273 [details]
screenshot

STEPS TO REPRODUCE
1. make sure 'Show on startup - Folders, tabs, and window state from last time' option is selected in 'Startup' section of Dolphin settings
2. make sure your system does not mount external devices on boot
3. connect an external device - I use a usb flash drive
4. open your device with Dolphin
5. close Dolphin and reboot
6. log in and open Dolphin

OBSERVED RESULT
placeholder text says 'Loading canceled' and the status bar shows the free space of my Home.
Please see the attached screenshot.

EXPECTED RESULT
status bar should not show the free space of Home after the provided steps. Free space info should be omitted.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.90
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Graphics Platform: Wayland
Comment 1 Patrick Silva 2023-05-13 15:43:39 UTC
Another way to reproduce:
1. make sure Dolphin is configured to show tabs and folders from the last time
2. open a partition of an internal device with Dolphin - the status bar shows the free space of the partition
3. close Dolphin
4. unmount the partition used in the step 1 via cli or using another file manager
5. reopen Dolphin

Result: a placeholder text says "Folder is empty" and the status bar shows the free space of my Home (I don't use a separate partition for my Home).