[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>
xcode15
Christopher Snowhill 2022-07-29 01:41:10 -07:00
parent 660cb1bab1
commit daa0c3fc61
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;