From 818a663ea9987aad38d748b7010c9f0d0de863b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Wed, 27 Feb 2008 14:24:24 +0000 Subject: [PATCH] fix macosx update gui --- modules/gui/macosx/update.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/gui/macosx/update.m b/modules/gui/macosx/update.m index c66375bfe2..679784307f 100644 --- a/modules/gui/macosx/update.m +++ b/modules/gui/macosx/update.m @@ -173,12 +173,14 @@ static VLCUpdate *_o_sharedInstance = nil; if( uptodate ) { + [o_fld_releaseNote setString: [NSString string]]; + [o_fld_currentVersion setStringValue: [NSString string]]; [o_fld_status setStringValue: _NS("This version of VLC is the latest available.")]; [o_btn_DownloadNow setEnabled: NO]; } else { - [o_fld_releaseNote setString: [NSString stringWithUTF8String: (p_u->release.psz_desc)]]; + [o_fld_releaseNote setString: [NSString stringWithUTF8String: (p_u->release.psz_desc ? p_u->release.psz_desc : "" )]]; [o_fld_status setStringValue: _NS("This version of VLC is outdated.")]; [o_fld_currentVersion setStringValue: [NSString stringWithFormat: _NS("The current release is %d.%d.%d%c."), p_u->release.i_major, @@ -195,7 +197,7 @@ static VLCUpdate *_o_sharedInstance = nil; static void updateCallback( void * p_data, vlc_bool_t b_success ) { - [(id)p_data setUpToDate: b_success && update_CompareReleaseToCurrent( ((VLCUpdate*)p_data)->p_u ) == UpdateReleaseStatusNewer ]; + [(id)p_data setUpToDate: !b_success || update_CompareReleaseToCurrent( ((VLCUpdate*)p_data)->p_u ) == UpdateReleaseStatusNewer ]; } - (void)checkForUpdate -- 2.39.5