[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:32:19 CEST 2013


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

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

(cherry picked from commit d2384cd907d7850167f2da00331bc0e02bc144e1)

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

 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