Commit d007ea0c authored by Carola's avatar Carola
Browse files

fixed crash when adding a file to a folder

parent b875c573
...@@ -91,7 +91,6 @@ ...@@ -91,7 +91,6 @@
{ {
if (_mediaObject != mediaObject) { if (_mediaObject != mediaObject) {
if ([_mediaObject isKindOfClass:[MLLabel class]]) { if ([_mediaObject isKindOfClass:[MLLabel class]]) {
[_mediaObject removeObserver:self forKeyPath:@"files"];
[_mediaObject removeObserver:self forKeyPath:@"name"]; [_mediaObject removeObserver:self forKeyPath:@"name"];
} else if ([_mediaObject isKindOfClass:[MLShow class]]) } else if ([_mediaObject isKindOfClass:[MLShow class]])
[_mediaObject removeObserver:self forKeyPath:@"episodes"]; [_mediaObject removeObserver:self forKeyPath:@"episodes"];
...@@ -123,7 +122,6 @@ ...@@ -123,7 +122,6 @@
self.thumbnailView.image = nil; self.thumbnailView.image = nil;
if ([_mediaObject isKindOfClass:[MLLabel class]]) { if ([_mediaObject isKindOfClass:[MLLabel class]]) {
[_mediaObject addObserver:self forKeyPath:@"files" options:0 context:nil];
[_mediaObject addObserver:self forKeyPath:@"name" options:0 context:nil]; [_mediaObject addObserver:self forKeyPath:@"name" options:0 context:nil];
} else if ([_mediaObject isKindOfClass:[MLShow class]]) } else if ([_mediaObject isKindOfClass:[MLShow class]])
[_mediaObject addObserver:self forKeyPath:@"episodes" options:0 context:nil]; [_mediaObject addObserver:self forKeyPath:@"episodes" options:0 context:nil];
......
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