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 @@
NSMutableSet *tracks = [self mutableSetValueForKey:@"tracks"];
@try {
[tracks removeObject:track];
[self willChangeValueForKey:@"tracks"];
[self setValue:tracks forKey:@"tracks"];
[self didChangeValueForKey:@"tracks"];
}
@catch (NSException *exception) {
NSLog(@"removing track failed");
}
}
- (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