]> git.sesse.net Git - vlc/commitdiff
macosx: retain currently selected playlist table row on item removal (close #9541)
authorFelix Paul Kühne <fkuehne@videolan.org>
Thu, 3 Oct 2013 18:28:40 +0000 (20:28 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Thu, 3 Oct 2013 18:28:40 +0000 (20:28 +0200)
modules/gui/macosx/playlist.m

index e6007e80c9143f8b923b23be383c8418909c8359..950cf31795f715755f557aa30f150d09499cc33f 100644 (file)
     [[[[VLCMain sharedInstance] wizard] playlistWizard] reloadOutlineView];
     [[[[VLCMain sharedInstance] bookmarks] dataTable] reloadData];
 
+    [o_outline_view selectRowIndexes:[NSIndexSet indexSetWithIndex:retainedRowSelection] byExtendingSelection:NO];
+
     [self outlineViewSelectionDidChange: nil];
     [[VLCMain sharedInstance] updateMainWindow];
 }
 
     o_selected_indexes = [o_outline_view selectedRowIndexes];
     i_count = [o_selected_indexes count];
+    retainedRowSelection = [o_selected_indexes firstIndex];
 
     p_playlist = pl_Get(p_intf);