Commit 17c0beca authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx/playlist: added missing sanity check

parent e139c96c
......@@ -1042,12 +1042,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