]> git.sesse.net Git - vlc/commitdiff
macosx: playlist: deselect item after changing categories
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Sat, 7 Mar 2015 12:09:52 +0000 (13:09 +0100)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Sun, 8 Mar 2015 16:28:49 +0000 (17:28 +0100)
modules/gui/macosx/PLModel.m

index 3aec7d8fbdc90f7f5a63ee423ab6b45c94958dfb..9503e7053aaa40657cf7c6505e42def5b0126171 100644 (file)
@@ -69,7 +69,9 @@
     [_rootItem release];
     _rootItem = [[PLItem alloc] initWithPlaylistItem:p_root];
     [self rebuildPLItem:_rootItem];
+
     [_outlineView reloadData];
+    [_outlineView selectRowIndexes:[NSIndexSet indexSetWithIndex:0] byExtendingSelection:NO];
 }
 
 - (BOOL)hasChildren