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

macosx/playlist: added missing sanity check

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