Summary: | Desktop folder view's "Sort By" option reverts to "Unsorted" when adding files to the desktop via any method | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Katalin Rebhan <me> |
Component: | Desktop icons & Folder View widget | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bugseforuns, cegfault, hein, me, nate, nunzio.dabbruzzo, openmail+kde |
Priority: | NOR | Keywords: | usability |
Version First Reported In: | 6.0.0 | ||
Target Milestone: | 1.0 | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/plasma-desktop/-/commit/f1a9052dff63938fd96890c7f88c6aa508e5f9a6 | Version Fixed In: | 6.3.6 |
Sentry Crash Report: |
Description
Katalin Rebhan
2024-03-05 13:43:32 UTC
It looks like it's interpreting your drag as the desire to place those icons in the specified location, which would have to reset the sort mode to "Unsorted" to make it happen. Instead it should disable the "drop icons at this specific location" feature when the sort mode is something other than "Unsorted" Well, well... Losing sorting configuration of icons on desktop is an old Plasma bug, and I thought of it a few hours ago. I never reported it before because I didn't know what steps exactly were triggering it. But finally someone found the cause. Thank you, Marco. :) When not using the "Unsorted" mode, it should really just prevent you from moving icons at all, rather than letting you do it and then secretly changing the sorting mode. SUMMARY: This issue also happens when creating new items on the desktop (e.g., new folders or files) using the context menu option Create New > (item type). STEPS TO REPRODUCE: 1. Ensure the desktop's Icons > Sort By is set to Name. 2. Right-click on the desktop and select Create New > (any item type). 3. Give the item any name. OBSERVED RESULT: The item is created close to where the right-click occurred, and the user's Sort By preference changes to Unsorted, whether or not Icons is set to Locked. EXPECTED RESULT: The item should be created and placed within the logical sorting order as deteremined by the user's Sort By preference, and the preference should be retained. SOFTWARE/OS VERSIONS: Operating System: Arch Linux (rolling) KDE Plasma version: 6.2.5 KDE Frameworks version: 6.10.0 Qt version: 6.8.1 Kernel version: 6.12.10-arch1-1 (64-bit) Graphics platform: Wayland HARDWARE: Processors: 24 × AMD Ryzen 9 7900X 12-Core Processor Memory: 62.4 GiB of RAM Graphics processor: AMD Radeon RX 6600 *** Bug 501930 has been marked as a duplicate of this bug. *** A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2977 Git commit 03ef2343212bbc4be274b1b37788186df03a8cb3 by Akseli Lahtinen. Committed on 09/05/2025 at 08:53. Pushed by akselmo into branch 'master'. FolderModel: When adding files, keep the current sorting The sort mode got changed to unsorted if any file was added. This was probably due to the infinite while loop that would happen later when we're looking for a new blank spot from an index that does not exist: This would return an empty QVariant that is false by default. We need to check if the index is valid. If it's not, we know it's a new index and can create one, so it is a blank spot. FIXED-IN: 6.3.6 M +4 -8 containments/desktop/plugins/folder/foldermodel.cpp https://invent.kde.org/plasma/plasma-desktop/-/commit/03ef2343212bbc4be274b1b37788186df03a8cb3 Git commit f1a9052dff63938fd96890c7f88c6aa508e5f9a6 by Akseli Lahtinen. Committed on 12/05/2025 at 08:09. Pushed by akselmo into branch 'Plasma/6.3'. FolderModel: When adding files, keep the current sorting The sort mode got changed to unsorted if any file was added. This was probably due to the infinite while loop that would happen later when we're looking for a new blank spot from an index that does not exist: This would return an empty QVariant that is false by default. We need to check if the index is valid. If it's not, we know it's a new index and can create one, so it is a blank spot. FIXED-IN: 6.3.6 (cherry picked from commit 03ef2343212bbc4be274b1b37788186df03a8cb3) 10260acb FolderModel: When adding files, keep the current sorting e64705c8 Fix comment, combine ifs Co-authored-by: Akseli Lahtinen <akselmo@akselmo.dev> M +4 -8 containments/desktop/plugins/folder/foldermodel.cpp https://invent.kde.org/plasma/plasma-desktop/-/commit/f1a9052dff63938fd96890c7f88c6aa508e5f9a6 *** Bug 504779 has been marked as a duplicate of this bug. *** |