Commit 0e79f6ff authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx/playlist: added missing sanity check

(cherry picked from commit 17c0becaf161355c19c554fd472cefdfbe1b41eb)
parent 366d2126
......@@ -985,12 +985,11 @@
if( [o_outline_view selectedRow] > -1 )
{
p_item = [[o_outline_view itemAtRow: [o_outline_view selectedRow]] pointerValue];
if (!p_item)
return;
}
else
/*If no item is selected, sort the whole playlist*/
{
p_item = [self currentPlaylistRoot];
}
p_item = [self currentPlaylistRoot]; // If no item is selected, sort the whole playlist
PL_LOCK;
if( p_item->i_children > -1 ) // the item is a node
......
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