From daa0c3fc61b537de83aa7140a929bd2e9e82de04 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Fri, 29 Jul 2022 01:41:10 -0700 Subject: [PATCH] [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 --- Playlist/PlaylistController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Playlist/PlaylistController.m b/Playlist/PlaylistController.m index 5c7b37f66..51606eb63 100644 --- a/Playlist/PlaylistController.m +++ b/Playlist/PlaylistController.m @@ -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;