Skip to content
Snippets Groups Projects
Commit 652fa4e5 authored by Claudio Cambra's avatar Claudio Cambra Committed by Felix Paul Kühne
Browse files

macosx: Check if represented list of albums is valid before creating...

macosx: Check if represented list of albums is valid before creating supplementary detail view in audio group data source

Signed-off-by: default avatarClaudio Cambra <developer@claudiocambra.com>
parent b2310729
No related branches found
No related tags found
1 merge request!5038macosx: Fix crash when searching library while album supplementary detail view is open
Pipeline #447342 passed with stage
in 18 minutes and 44 seconds
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment