Fixed: mp3 player keeps playing after clearing files from playlist

fix-media-player
Nimetu 5 years ago
parent 598be95efd
commit a6c7b3dd37

@ -85,7 +85,7 @@ void CMusicPlayer::playSongs (const std::vector<CSongs> &songs)
rebuildPlaylist(); rebuildPlaylist();
// If pause, stop, else play will resume // If pause, stop, else play will resume
if (_State == Paused) if (_State == Paused || _Songs.empty())
_State = Stopped; _State = Stopped;
} }

Loading…
Cancel
Save