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 <develo...@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
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to