Browse Source

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

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Shenghan Chen 10 years ago
parent
commit
07216ea8f7
1 changed files with 2 additions and 0 deletions
  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;