[Playlist Insert] Add a further bodge fix
I wish people would stop adding files to the playlist while there's a search filter in place. Signed-off-by: Christopher Snowhill <kode54@gmail.com>main
parent
8f7b26cb5d
commit
9ced34a87c
|
@ -892,7 +892,14 @@ static void *playlistControllerContext = &playlistControllerContext;
|
|||
pe.deLeted = NO;
|
||||
}
|
||||
|
||||
// further bodge fix
|
||||
@try {
|
||||
[super insertObjects:objects atArrangedObjectIndexes:indexes];
|
||||
}
|
||||
@catch(id anException) {
|
||||
indexes = [NSMutableIndexSet indexSetWithIndexesInRange:NSMakeRange(count, [objects count])];
|
||||
[super insertObjects:objects atArrangedObjectIndexes:indexes];
|
||||
}
|
||||
|
||||
[self commitPersistentStore];
|
||||
|
||||
|
|
Loading…
Reference in New Issue