[vlc-commits] [Git][videolan/vlc][master] macosx: Check if represented list of albums is valid before creating...

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Mon Mar 11 18:40:01 UTC 2024



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
652fa4e5 by Claudio Cambra at 2024-03-11T18:11:20+00:00
macosx: Check if represented list of albums is valid before creating supplementary detail view in audio group data source

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -


1 changed file:

- modules/gui/macosx/library/audio-library/VLCLibraryAudioGroupDataSource.m


Changes:

=====================================
modules/gui/macosx/library/audio-library/VLCLibraryAudioGroupDataSource.m
=====================================
@@ -252,6 +252,9 @@ viewForSupplementaryElementOfKind:(NSCollectionViewSupplementaryElementKind)kind
                atIndexPath:(NSIndexPath *)indexPath
 {
     if ([kind isEqualToString:VLCLibraryCollectionViewAlbumSupplementaryDetailViewKind]) {
+        if (self.representedListOfAlbums == nil || self.representedListOfAlbums.count == 0) {
+            return nil;
+        }
 
         VLCLibraryCollectionViewAlbumSupplementaryDetailView* albumSupplementaryDetailView = [collectionView makeSupplementaryViewOfKind:kind withIdentifier:VLCLibraryCollectionViewAlbumSupplementaryDetailViewKind forIndexPath:indexPath];
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/652fa4e5a17d7311eec3cc3c03edb77aaf4836db

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/652fa4e5a17d7311eec3cc3c03edb77aaf4836db
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list