diff --git a/modules/gui/macosx/library/VLCLibraryHeroView.m b/modules/gui/macosx/library/VLCLibraryHeroView.m index 714e50a9d37d..9ea05e92f327 100644 --- a/modules/gui/macosx/library/VLCLibraryHeroView.m +++ b/modules/gui/macosx/library/VLCLibraryHeroView.m @@ -199,7 +199,9 @@ - (void)itemUpdated:(NSNotification *)notification return; } - VLCLibraryRepresentedItem * const item = [[VLCLibraryRepresentedItem alloc] initWithItem:mediaItem parentType:item.parentType]; + VLCLibraryRepresentedItem * const item = + [[VLCLibraryRepresentedItem alloc] initWithItem:mediaItem + parentType:self.representedItem.parentType]; self.representedItem = item; }