Bug 471429 - Skip backward/forward buttons not updated when changing playlist
Summary: Skip backward/forward buttons not updated when changing playlist
Status: RESOLVED FIXED
Alias: None
Product: Elisa
Classification: Applications
Component: general (show other bugs)
Version: 23.04.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Matthieu Gallien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-25 09:55 UTC by Quinten Kock
Modified: 2023-09-18 16:51 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Quinten Kock 2023-06-25 09:55:05 UTC
SUMMARY
The buttons for next and previous song are not enabled/disabled correctly.

STEPS TO REPRODUCE
1. Create a playlist, and play the last song
2. Drag this song to the top

OBSERVED RESULT
The "Skip backward" button is enabled and the "Skip forward" button is disabled.

EXPECTED RESULT
Skip backward should become unactive because it is no longer possible to do so. And skip forward should become active for the opposite reason.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux 6.3.6-arch1-1
(available in About System)
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9

ADDITIONAL INFORMATION
Comment 1 Bug Janitor Service 2023-09-15 16:42:39 UTC
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/elisa/-/merge_requests/488
Comment 2 Nate Graham 2023-09-18 16:51:55 UTC
Git commit 0e6fdd58908fd86d924ce040902be4635e90545a by Nate Graham, on behalf of Jack Hill.
Committed on 18/09/2023 at 18:46.
Pushed by ngraham into branch 'master'.

mediaplaylistproxymodel: update playlist indices when moving the current track

Update previous/next track
Update mCurrentPlayListPosition
Emit currentTrackRowChanged
Related: bug 471456, bug 472284

M  +14   -2    src/mediaplaylistproxymodel.cpp
M  +2    -0    src/mediaplaylistproxymodel.h

https://invent.kde.org/multimedia/elisa/-/commit/0e6fdd58908fd86d924ce040902be4635e90545a