Bug 500289

Summary: Drag-and-drop reordering in grouped task textual list is pretty broken
Product: [Plasma] plasmashell Reporter: cwo <cwo.kde>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: nate, qydwhotmail
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description cwo 2025-02-17 23:40:26 UTC
SUMMARY

Drag-and-drop reordering in the textual list popup works very badly most of the time. Sometimes it seems to work well, but mostly it behaves in bizarre ways - sometimes the entries don't move at all, sometimes they move in the wrong direction, sometimes another entry moves...

I haven't quite figured out the pattern, but it seems that the entry that is highlighted at the start seems to work properly (at least as long as no other item is highlighted in the meantime), items that are not highlighted behave in the most bizarre ways, and items that were highlighted but not when opening work if you right-click or click them before (note that you need to get the Listview in a state where it stops highlighting the hovered item beforehand, as if the item is highlighted clicking it will raise the window - but playing around a bit it's not too hard to get them out of sync,

From these bizzarre patterns it seems like there's some shenanigans with the currentItem of the ListView somehow hoing out of sync, but I haven't looked into it in detail yet.

STEPS TO REPRODUCE
1. Have task manager with textual list as the click option and manual sorting, and a grouped task with several identifiable windows
2. Click the grouped task, then try to move the individual tasks around, in particular ones that were not highlighted at the start and/or are not highlighted at the moment

OBSERVED RESULT

Bizarre things that defy an attempt at rational explanation

EXPECTED RESULT

It works

SOFTWARE/OS VERSIONS

Same on 6.3.0

Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.12.13-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland