From: Felix Paul Kühne Date: Sat, 4 Mar 2006 11:53:03 +0000 (+0000) Subject: * fix the table on the second tab and added an extra check to prevent a crash in... X-Git-Tag: 0.9.0-test0~12058 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=03c546c175cbe5b1636ac581478b4a5fd969fc93;p=vlc * fix the table on the second tab and added an extra check to prevent a crash in rare situations --- diff --git a/extras/MacOSX/Resources/English.lproj/MainMenu.nib/keyedobjects.nib b/extras/MacOSX/Resources/English.lproj/MainMenu.nib/keyedobjects.nib index 6470f1ec85..bbff69cb9d 100644 Binary files a/extras/MacOSX/Resources/English.lproj/MainMenu.nib/keyedobjects.nib and b/extras/MacOSX/Resources/English.lproj/MainMenu.nib/keyedobjects.nib differ diff --git a/modules/gui/macosx/playlistinfo.m b/modules/gui/macosx/playlistinfo.m index 8045685c17..c1ae857d80 100644 --- a/modules/gui/macosx/playlistinfo.m +++ b/modules/gui/macosx/playlistinfo.m @@ -141,6 +141,10 @@ - (void)initPanel:(id)sender { + /* check whether our item is valid, because we would crash if not */ + if(! [self isItemInPlaylist: p_item] ) + return; + char *psz_temp; vlc_mutex_lock( &p_item->input.lock ); @@ -185,7 +189,7 @@ /* reload the advanced table */ [[VLCInfoTreeItem rootItem] refresh]; [o_outline_view reloadData]; - + [self updateStatistics: nil]; [o_info_window makeKeyAndOrderFront: sender];