If the currently playing song was removed from the playlist, start from the beginning when playing the next track. Fixes issue #160

This commit is contained in:
David Sansome 2010-04-11 15:13:39 +00:00
parent 1eb9447097
commit 8b678cba9a
1 changed files with 1 additions and 2 deletions

View File

@ -113,8 +113,7 @@ void Player::NextItem() {
}
void Player::TrackEnded() {
int i = playlist_->current_index();
if (i == -1 || playlist_->stop_after_current()) {
if (playlist_->stop_after_current()) {
Stop();
return;
}