Commit fcf0b237 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Fix runtime exception

(cherry picked from commit 447f2257)
parent 4e775ecb
...@@ -108,11 +108,16 @@ ...@@ -108,11 +108,16 @@
NSMutableSet *tracks = [self mutableSetValueForKey:@"tracks"]; NSMutableSet *tracks = [self mutableSetValueForKey:@"tracks"];
[tracks removeObject:track]; @try {
[tracks removeObject:track];
[self willChangeValueForKey:@"tracks"]; [self willChangeValueForKey:@"tracks"];
[self setValue:tracks forKey:@"tracks"]; [self setValue:tracks forKey:@"tracks"];
[self didChangeValueForKey:@"tracks"]; [self didChangeValueForKey:@"tracks"];
@catch (NSException *exception) {
NSLog(@"removing track failed");
} }
- (void)removeTrackWithNumber:(NSNumber *)trackNumber - (void)removeTrackWithNumber:(NSNumber *)trackNumber
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment