[vlc-devel] commit: OSX GUI was forgotten in [85f5092ee68d13fd4056848d5a2124e753fc69f5] ( Rafaël Carré )
git version control
git at videolan.org
Sat May 31 01:04:36 CEST 2008
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed May 28 22:45:54 2008 +0200| [2ec34bde3ba7c7207e0f44c1ad5d4910101b37f7]
OSX GUI was forgotten in [85f5092ee68d13fd4056848d5a2124e753fc69f5]
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2ec34bde3ba7c7207e0f44c1ad5d4910101b37f7
---
modules/gui/macosx/update.m | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/modules/gui/macosx/update.m b/modules/gui/macosx/update.m
index e201cb2..e111cc8 100644
--- a/modules/gui/macosx/update.m
+++ b/modules/gui/macosx/update.m
@@ -26,6 +26,8 @@
#ifdef UPDATE_CHECK
+#include <assert.h>
+
/*****************************************************************************
* Preamble
*****************************************************************************/
@@ -132,8 +134,10 @@ static VLCUpdate *_o_sharedInstance = nil;
[saveFilePanel setRequiredFileType: @"dmg"];
[saveFilePanel setCanSelectHiddenExtension: YES];
[saveFilePanel setCanCreateDirectories: YES];
+ update_release_t *p_release = update_GetRelease( p_u );
+ assert( p_release );
[saveFilePanel beginSheetForDirectory:nil file:
- [[[NSString stringWithUTF8String: p_u->release.psz_url] componentsSeparatedByString:@"/"] lastObject]
+ [[[NSString stringWithUTF8String: p_release->psz_url] componentsSeparatedByString:@"/"] lastObject]
modalForWindow: o_update_window
modalDelegate:self
didEndSelector:sel
@@ -176,11 +180,12 @@ static VLCUpdate *_o_sharedInstance = nil;
}
else
{
- [o_fld_releaseNote setString: [NSString stringWithUTF8String: (p_u->release.psz_desc ? p_u->release.psz_desc : "" )]];
+ update_release_t *p_release = update_GetRelease( p_u );
+ [o_fld_releaseNote setString: [NSString stringWithUTF8String: (p_release->psz_desc ? p_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,
- p_u->release.i_minor, p_u->release.i_revision, p_u->release.extra]];
+ _NS("The current release is %d.%d.%d%c."), p_release->i_major,
+ p_release->i_minor, p_release->i_revision, p_release->extra]];
[o_btn_DownloadNow setEnabled: YES];
/* Make sure the update window is showed in case we have something */
[o_update_window center];
More information about the vlc-devel
mailing list