浏览代码

Library: fix potential imagery mix-up

Felix Paul Kühne 12 年之前
父节点
当前提交
0af7be5da7
共有 2 个文件被更改,包括 4 次插入6 次删除
  1. 2 3
      AspenProject/VLCPlaylistGridView.m
  2. 2 3
      AspenProject/VLCPlaylistTableViewCell.m

+ 2 - 3
AspenProject/VLCPlaylistGridView.m

@@ -113,10 +113,9 @@
                 [_thumbnailCacheIndex removeLastObject];
             }
             displayedImage = mediaObject.computedThumbnail;
-            if (displayedImage) {
+            if (displayedImage)
                 [_thumbnailCache setObject:displayedImage forKey:objID];
-                [_thumbnailCacheIndex insertObject:objID atIndex:0];
-            }
+            [_thumbnailCacheIndex insertObject:objID atIndex:0];
         }
         self.thumbnailView.image = displayedImage;
     }

+ 2 - 3
AspenProject/VLCPlaylistTableViewCell.m

@@ -98,10 +98,9 @@
                 [_thumbnailCacheIndex removeLastObject];
             }
             displayedImage = mediaObject.computedThumbnail;
-            if (displayedImage) {
+            if (displayedImage)
                 [_thumbnailCache setObject:displayedImage forKey:objID];
-                [_thumbnailCacheIndex insertObject:objID atIndex:0];
-            }
+            [_thumbnailCacheIndex insertObject:objID atIndex:0];
         }
         self.thumbnailView.image = displayedImage;
     }