Commit cc341c94 authored by David Fuhrmann's avatar David Fuhrmann Committed by Jean-Baptiste Kempf

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

(cherry picked from commit 1e5bed0fb7b15823097064b62fcf9b49ef5d9e12)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 253b10a0
...@@ -469,7 +469,7 @@ ...@@ -469,7 +469,7 @@
BOOL b_selected_item_met; BOOL b_selected_item_met;
BOOL b_isSortDescending; BOOL b_isSortDescending;
id o_tc_sortColumn; id o_tc_sortColumn;
NSInteger retainedRowSelection; NSUInteger retainedRowSelection;
BOOL b_playlistmenu_nib_loaded; BOOL b_playlistmenu_nib_loaded;
BOOL b_view_setup; BOOL b_view_setup;
...@@ -968,6 +968,8 @@ ...@@ -968,6 +968,8 @@
o_selected_indexes = [o_outline_view selectedRowIndexes]; o_selected_indexes = [o_outline_view selectedRowIndexes];
i_count = [o_selected_indexes count]; i_count = [o_selected_indexes count];
retainedRowSelection = [o_selected_indexes firstIndex]; retainedRowSelection = [o_selected_indexes firstIndex];
if (retainedRowSelection == NSNotFound)
retainedRowSelection = 0;
p_playlist = pl_Get(p_intf); p_playlist = pl_Get(p_intf);
......
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