浏览代码

fixed crash when adding a file to a folder

Carola Nitz 11 年之前
父节点
当前提交
d007ea0cc9
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      Sources/VLCPlaylistCollectionViewCell.m

+ 0 - 2
Sources/VLCPlaylistCollectionViewCell.m

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