[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>xcode15
parent
e14c630034
commit
9c4d9ebb2e
|
@ -892,7 +892,14 @@ static void *playlistControllerContext = &playlistControllerContext;
|
|||
pe.deLeted = NO;
|
||||
}
|
||||
|
||||
[super insertObjects:objects atArrangedObjectIndexes:indexes];
|
||||
// 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