[vlc-commits] macosx/playlist: added missing sanity check
Felix Paul Kühne
git at videolan.org
Wed Aug 22 16:17:10 CEST 2012
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Aug 22 16:16:46 2012 +0200| [17c0becaf161355c19c554fd472cefdfbe1b41eb] | committer: Felix Paul Kühne
macosx/playlist: added missing sanity check
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=17c0becaf161355c19c554fd472cefdfbe1b41eb
---
modules/gui/macosx/playlist.m | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 9f42b17..60ca1b8 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -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
More information about the vlc-commits
mailing list