Bug 505249 - Folder View widget visually duplicates items dragged into it
Summary: Folder View widget visually duplicates items dragged into it
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop icons & Folder View widget (other bugs)
Version First Reported In: 6.3.90
Platform: Other Linux
: HI normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 504851 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-06-05 19:42 UTC by Lenzoid
Modified: 2025-06-20 11:25 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.4.0
Sentry Crash Report:


Attachments
Bug demo vid (2.64 MB, video/webm)
2025-06-05 19:42 UTC, Lenzoid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lenzoid 2025-06-05 19:42:12 UTC
Created attachment 182055 [details]
Bug demo vid

SUMMARY
Folder View widget is duplicating entries

STEPS TO REPRODUCE (see attached video)
1. Create folder view Widget
2. Configure Folder View... Location > Custom Location (or folder in places). Set it to a folder that contains **only a couple of objects**
3. Copy or move any file via drag and drop into the Folder View.

OBSERVED RESULT
Upon dropping the file, items in the folder view are duplicated for no apparent reason.

EXPECTED RESULT
No duplicates should appear.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.80
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.14.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X3D 8-Core Processor
Memory: 32 GiB of RAM (31.3 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 2070 SUPER
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7B85
System Version: 1.0

ADDITIONAL INFORMATION
Copying the files into the folder that Folder View is diplaying the contents of directly is working fine. Affected are Beta 6.4 and git-master. Idk about earlier versions.
Comment 1 Nate Graham 2025-06-06 16:40:57 UTC
Can reproduce exactly as described and depicted.
Comment 2 Bug Janitor Service 2025-06-09 12:52:24 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3052
Comment 3 Akseli Lahtinen 2025-06-09 14:39:47 UTC
Git commit aaf595b25749553b5f348edf53d253f59021c054 by Akseli Lahtinen.
Committed on 09/06/2025 at 12:51.
Pushed by akselmo into branch 'master'.

FolderView: Do not use positioner if its disabled

FolderView plasma widget does not use positioner, so we should not
run any positioner related code when it's disabled.

If the object has positioner disabled and runs it anyway,
it will get confused and try to shuffle the few items it has around,
creating fake items in wrong indices.

M  +3    -0    containments/desktop/package/contents/ui/FolderView.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/aaf595b25749553b5f348edf53d253f59021c054
Comment 4 Akseli Lahtinen 2025-06-10 08:41:34 UTC
Git commit 6b7c83260a42e46a5b968a04d8d987326ef620c2 by Akseli Lahtinen.
Committed on 10/06/2025 at 08:16.
Pushed by akselmo into branch 'Plasma/6.4'.

FolderView: Do not use positioner if its disabled

FolderView plasma widget does not use positioner, so we should not
run any positioner related code when it's disabled.

If the object has positioner disabled and runs it anyway,
it will get confused and try to shuffle the few items it has around,
creating fake items in wrong indices.


(cherry picked from commit aaf595b25749553b5f348edf53d253f59021c054)

Co-authored-by: Akseli Lahtinen <akselmo@akselmo.dev>

M  +3    -0    containments/desktop/package/contents/ui/FolderView.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/6b7c83260a42e46a5b968a04d8d987326ef620c2
Comment 5 Schlaefer 2025-06-20 11:25:17 UTC
*** Bug 504851 has been marked as a duplicate of this bug. ***