浏览代码

Playlist: always clear selection when enter edit mode (fix #14860)

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Shenghan Chen 10 年之前
父节点
当前提交
07216ea8f7
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Sources/VLCPlaylistViewController.m

+ 2 - 0
Sources/VLCPlaylistViewController.m

@@ -1101,6 +1101,8 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
         [visibleCells enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
             VLCPlaylistCollectionViewCell *aCell = (VLCPlaylistCollectionViewCell*)obj;
 
+            // always clear selection when enter edit mode
+            aCell.selected = NO;
             [aCell setEditing:editing animated:animated];
         }];
         self.collectionView.allowsMultipleSelection = editing;