Преглед на файлове

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;