]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/MainWindow.m
macosx: fixed crash when rebuilding the sidebar too often
[vlc] / modules / gui / macosx / MainWindow.m
index 0b8d3a29953c076eb533eaa2bbb1390ba2253ca2..fa308f20d9578b1569186475802d87d883f872d4 100644 (file)
@@ -80,7 +80,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
     [self setMovableByWindowBackground: YES];
 
     /* we don't want this window to be restored on relaunch */
-    if ([self respondsToSelector:@selector(setRestorable:)])
+    if (OSX_LION)
         [self setRestorable:NO];
 
     return self;
@@ -742,8 +742,6 @@ static VLCMainWindow *_o_sharedInstance = nil;
         [self setRepresentedURL: nil];
     }
 
-    [o_sidebar_view reloadData];
-
     [o_pool release];
 }