[Playlist Queue] Hopefully prevent a crash state

This removal was causing crashes for some people. It should not get this
way, however.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
main
Christopher Snowhill 2022-07-29 01:41:10 -07:00
parent b60a5462b7
commit e0c1e338e4
1 changed files with 1 additions and 1 deletions

View File

@ -1635,7 +1635,7 @@ static void *playlistControllerContext = &playlistControllerContext;
for(PlaylistEntry *queueItem in [self selectedObjects]) {
if(queueItem.queued) {
[queueList removeObjectAtIndex:queueItem.queuePosition];
[queueList removeObject:queueItem];
queueItem.queued = NO;
queueItem.queuePosition = -1;