]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/playlist.m
Also update the wizard playlist on item addition and deletion. This prevent VLC to...
[vlc] / modules / gui / macosx / playlist.m
index d0629203bb1176a1b086a7ea2fde2c2e52156db6..2711930d0d2fb3d96c9fdb9994a24eeaf104985f 100644 (file)
 
 - (IBAction)reloadOutlineView
 {
-    [o_outline_view reloadData];
+    /* Only reload the outlineview if the wizard window is open since this can
+       be quite long on big playlists */
+    if( [[o_outline_view window] isVisible] )
+    {
+        [o_outline_view reloadData];
+    }
 }
 
 @end
@@ -512,6 +517,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
     // TODO Find a way to keep the dict size to a minimum
     //[o_outline_dict removeAllObjects];
     [o_outline_view reloadData];
+    [[[[VLCMain sharedInstance] getWizard] getPlaylistWizard] reloadOutlineView];
 }
 
 - (void)playModeUpdated