diff options
author | handbrake <[email protected]> | 2007-01-02 22:43:32 +0000 |
---|---|---|
committer | handbrake <[email protected]> | 2007-01-02 22:43:32 +0000 |
commit | 4a04f3ecd4d15ad7a47bc797e991f412c426b05f (patch) | |
tree | 7ca6065907b7f127747a8346b5bacb00a3493220 /macosx/Controller.mm | |
parent | 0a8d557f3c7c55527a5ba4bba993866bef6e916a (diff) |
by dynflash
Handbrake GUI:
-fixed ScanController so that HB doesnt crash if you try to open a dvd that isnt there.
-Uses DVD name as the default for Movie output (instead of the generic "Movie.mp4"
-Versioned 0.7.1a5 in in Handbrake.plist to assist testers and developers of HB binary in telling which one they are using.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@83 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.mm')
-rw-r--r-- | macosx/Controller.mm | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index e182acdff..a38d0d062 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -57,6 +57,8 @@ static int FormatSettings[3][4] = if( ( build = hb_check_update( fHandle, &version ) ) > -1 ) { /* Update available - tell the user */ + /* TEMPORARILY COMMENT OUT AS UPDATE CHECK IS NOT ACCURATE */ + /* NSBeginInformationalAlertSheet( _( @"Update is available" ), _( @"Go get it!" ), _( @"Discard" ), NULL, fWindow, self, @selector( UpdateAlertDone:returnCode:contextInfo: ), @@ -64,6 +66,7 @@ static int FormatSettings[3][4] = _( @"HandBrake %s (build %d) is now available for download." ), version, build] ); return; + */ } /* Show scan panel ASAP */ @@ -286,14 +289,25 @@ static int FormatSettings[3][4] = for( int i = 0; i < hb_list_count( list ); i++ ) { title = (hb_title_t *) hb_list_item( list, i ); - [fSrcDVD2Field setStringValue: [NSString + /*Set DVD Name at top of window*/ + [fSrcDVD2Field setStringValue: [NSString stringWithUTF8String: title->name]]; - - [fSrcTitlePopUp addItemWithTitle: [NSString + + /* Use the dvd name in the default output field here + May want to add code to remove blank spaces for some dvd names*/ + [fDstFile2Field setStringValue: [NSString stringWithFormat: + @"%@/Desktop/%@.mp4", NSHomeDirectory(),[NSString + stringWithUTF8String: title->name]]]; + + [fSrcTitlePopUp addItemWithTitle: [NSString stringWithFormat: @"%d - %02dh%02dm%02ds", title->index, title->hours, title->minutes, title->seconds]]; - } + + + + + } [self TitlePopUpChanged: NULL]; [self EnableUI: YES]; |