[vlc-commits] macosx: handle corner case in playlist deletion (refs #11735)

David Fuhrmann git at videolan.org
Sun Jul 13 17:52:23 CEST 2014


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Jul 13 17:52:02 2014 +0200| [1e5bed0fb7b15823097064b62fcf9b49ef5d9e12] | committer: David Fuhrmann

macosx: handle corner case in playlist deletion (refs #11735)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1e5bed0fb7b15823097064b62fcf9b49ef5d9e12
---

 modules/gui/macosx/playlist.m |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 0e68a17..d3a71ef 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -469,7 +469,7 @@
     BOOL b_selected_item_met;
     BOOL b_isSortDescending;
     id o_tc_sortColumn;
-    NSInteger retainedRowSelection;
+    NSUInteger retainedRowSelection;
 
     BOOL b_playlistmenu_nib_loaded;
     BOOL b_view_setup;
@@ -968,6 +968,8 @@
     o_selected_indexes = [o_outline_view selectedRowIndexes];
     i_count = [o_selected_indexes count];
     retainedRowSelection = [o_selected_indexes firstIndex];
+    if (retainedRowSelection == NSNotFound)
+        retainedRowSelection = 0;
 
     p_playlist = pl_Get(p_intf);
 



More information about the vlc-commits mailing list