[vlc-commits] macosx: fix selection of playlist item for very first start

David Fuhrmann git at videolan.org
Thu Nov 21 11:03:49 CET 2013


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Thu Nov 21 10:59:02 2013 +0100| [dd4fe6748489ff37ac0847a5baf9db6db21e3419] | committer: David Fuhrmann

macosx: fix selection of playlist item for very first start

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

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

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 43626c2..5f8b3ac 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -309,7 +309,6 @@ static VLCMainWindow *_o_sharedInstance = nil;
         [o_sidebaritems addObject: internetItem];
 
     [o_sidebar_view reloadData];
-    [o_sidebar_view selectRowIndexes:[NSIndexSet indexSetWithIndex:1] byExtendingSelection:NO];
     [o_sidebar_view setDropItem:playlistItem dropChildIndex:NSOutlineViewDropOnItemIndex];
     [o_sidebar_view registerForDraggedTypes:[NSArray arrayWithObjects:NSFilenamesPboardType, @"VLCPlaylistItemPboardType", nil]];
 
@@ -337,6 +336,9 @@ static VLCMainWindow *_o_sharedInstance = nil;
         [o_fspanel center];
     }
 
+    // select playlist item by default
+    [o_sidebar_view selectRowIndexes:[NSIndexSet indexSetWithIndex:1] byExtendingSelection:NO];
+
     if (b_dark_interface) {
         [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(windowResizedOrMoved:) name: NSWindowDidResizeNotification object: nil];
         [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(windowResizedOrMoved:) name: NSWindowDidMoveNotification object: nil];



More information about the vlc-commits mailing list