Bug 429935

Summary: When the sort order is inverted the selection is gone
Product: [Applications] Elisa Reporter: postix <postix>
Component: generalAssignee: Matthieu Gallien <matthieu_gallien>
Status: CONFIRMED ---    
Severity: normal CC: nate, postix
Priority: NOR    
Version First Reported In: 20.08.3   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description postix 2020-12-02 16:15:28 UTC
SUMMARY

When you select a song in the "tracks section" and change the sort order, the list will be reordered.
The scrollbar will stay at the same position but the selected song will be at different location and is no longer selected.

STEPS TO REPRODUCE
1. Tracks section
2. Select a title
3. Reverse the order

OBSERVED RESULT

1) Order reversed
2) Scrollbar at the same position
3) Track no longer selected


EXPECTED RESULT

1) Order reversed
2) Track selected and scrollbar position changed accordingly so that the track stays in the view.


SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2