Bug 520089 - The Trash is not saving the layout of items
Summary: The Trash is not saving the layout of items
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 26.04.1
Platform: CachyOS Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2026-05-13 06:06 UTC by Fernando Marcelino Muniz
Modified: 2026-08-26 19:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Issue in Dolphin (2.38 MB, video/x-matroska)
2026-05-13 06:06 UTC, Fernando Marcelino Muniz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando Marcelino Muniz 2026-05-13 06:06:12 UTC
Created attachment 192238 [details]
Issue in Dolphin

STEPS TO REPRODUCE
1. Change the Trash item's layout from "Detailed" into "Icons".
2. Go to another folder, then go back.

OBSERVED RESULT
The setting wasn't saved.

EXPECTED RESULT
The setting should be saved.

SOFTWARE/OS VERSIONS
Operating System: CachyOS Linux 
KDE Plasma Version: 6.6.5
KDE Frameworks Version: 6.26.0
Qt Version: 6.11.0
Kernel Version: 7.0.5-2-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i5-11300H @ 3.10GHz
Memory: 8 GiB of RAM (7.5 GiB usable)
Graphics Processor 1: Intel® Iris® Xe Graphics
Graphics Processor 2: NVIDIA GeForce GTX 1650
Manufacturer: LENOVO
Product Name: 82MG
System Version: IdeaPad Gaming 3 15IHU6
Comment 1 Bug Janitor Service 2026-05-15 08:27:54 UTC
A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/1281
Comment 2 Méven 2026-05-23 10:25:24 UTC
Git commit 2e665e1b513b3f7c082bedc8faaf47bee8008c73 by Méven Car, on behalf of Pan Zhang.
Committed on 23/05/2026 at 10:25.
Pushed by meven into branch 'master'.

viewproperties: respect saved properties for special folders with global view props enabled

When "Use common display style for all folders" is enabled, the useDefaultSettings condition was always true because useGlobalViewProps was the first term in the OR chain. This caused special folders controlled by useSearchView, useTrashView, and useRecentDocumentsView to reset to their default view on every load, overriding any user customization.

Restrict the unconditional default-apply to non-special folders only. For special folders, the existing timestamp-based check handles the logic correctly, and the fallback in the else branch still applies defaults when no saved properties exist (first visit).

M  +28   -0    src/tests/viewpropertiestest.cpp
M  +6    -2    src/views/viewproperties.cpp

https://invent.kde.org/system/dolphin/-/commit/2e665e1b513b3f7c082bedc8faaf47bee8008c73