fix 'crop' function when mpd was stopped

This commit is contained in:
Andrzej Rybczak
2009-02-01 16:41:32 +01:00
parent e3ffbc7027
commit 4442f2bb7b

View File

@@ -3114,7 +3114,7 @@ int main(int argc, char *argv[])
}
// if mpd deletes now playing song deletion will be sluggishly slow
// then so we have to assure it will be deleted at the very end.
if (!mPlaylist->isSelected(now_playing))
if (now_playing >= 0 && !mPlaylist->isSelected(now_playing))
Mpd->QueueDeleteSongId(mPlaylist->at(now_playing).GetID());
ShowMessage("Deleting all items but selected...");