Commit 942b3851 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed seldom crash when collapsing stuff in the sidebar (close #6150)

(cherry picked from commit 16932fa4)
parent d08c46d9
...@@ -2023,7 +2023,7 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -2023,7 +2023,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
id item = [o_sidebar_view itemAtRow:[selectedIndexes firstIndex]]; id item = [o_sidebar_view itemAtRow:[selectedIndexes firstIndex]];
//Set the label text to represent the new selection //Set the label text to represent the new selection
if ([item sdtype] > -1) if ([item sdtype] > -1 && [[item identifier] length] > 0)
{ {
BOOL sd_loaded = playlist_IsServicesDiscoveryLoaded( p_playlist, [[item identifier] UTF8String] ); BOOL sd_loaded = playlist_IsServicesDiscoveryLoaded( p_playlist, [[item identifier] UTF8String] );
if (!sd_loaded) if (!sd_loaded)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment