[vlc-commits] macosx: retain currently selected playlist table row on item removal ( close #9541)

Felix Paul Kühne git at videolan.org
Thu Oct 3 20:28:47 CEST 2013


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Oct  3 20:28:40 2013 +0200| [d2384cd907d7850167f2da00331bc0e02bc144e1] | committer: Felix Paul Kühne

macosx: retain currently selected playlist table row on item removal (close #9541)

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

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

diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index e6007e8..950cf31 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -550,6 +550,8 @@
     [[[[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];
 }
@@ -892,6 +894,7 @@
 
     o_selected_indexes = [o_outline_view selectedRowIndexes];
     i_count = [o_selected_indexes count];
+    retainedRowSelection = [o_selected_indexes firstIndex];
 
     p_playlist = pl_Get(p_intf);
 



More information about the vlc-commits mailing list