playlist: check if files were actually added to playlist
This commit is contained in:
@@ -491,7 +491,8 @@ bool Playlist::Add(const MPD::SongList &l, bool play, int position)
|
|||||||
if (Mpd.AddSong(**j, position) < 0)
|
if (Mpd.AddSong(**j, position) < 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Mpd.CommitCommandsList();
|
if (!Mpd.CommitCommandsList())
|
||||||
|
return false;
|
||||||
|
|
||||||
if (play && old_playlist_size < Items->Size())
|
if (play && old_playlist_size < Items->Size())
|
||||||
Mpd.Play(old_playlist_size);
|
Mpd.Play(old_playlist_size);
|
||||||
|
|||||||
Reference in New Issue
Block a user