Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Serein207 committed Feb 3, 2024
2 parents 9c2412e + 84a631a commit 91ab35f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ViewModel/PlayingSongViewModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ void PlayingSongViewModel::previous() {

void PlayingSongViewModel::onMediaStatusChanged(QMediaPlayer::MediaStatus status) {
if (status == QMediaPlayer::EndOfMedia) {
auto songId = NextUpViewModel::getInstance()->getNextSong().id;
if (songId != 0)
player->play(NextUpViewModel::getInstance()->getSongUrl(songId));
next();
} else if (status == QMediaPlayer::NoMedia) {
emit playSongFailed("No media");
}
Expand Down

0 comments on commit 91ab35f

Please sign in to comment.