From 7394995e1ee8ed1f9c8deb6c82a686757a532cd4 Mon Sep 17 00:00:00 2001 From: dynaflash Date: Tue, 19 Jun 2007 15:18:11 +0000 Subject: MacGui: Chapter Popup fix condition where user can select a start chapter greater than the end chapter - Old behavior would result in a 00:00:00 encode - Now checks upon change and defaults to a single chapter rip relative to the start chapter. - Also fixed audio bitrate title in gui window from (Hz) to (khz) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@625 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/Controller.mm | 12 +++++++++++- macosx/English.lproj/MainMenu.nib/info.nib | 3 ++- macosx/English.lproj/MainMenu.nib/keyedobjects.nib | Bin 122179 -> 122180 bytes 3 files changed, 13 insertions(+), 2 deletions(-) (limited to 'macosx') diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 0537815c1..e07f925d0 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -1259,7 +1259,17 @@ return registrationDictionary; - (IBAction) ChapterPopUpChanged: (id) sender { - hb_list_t * list = hb_get_titles( fHandle ); + + /* If start chapter popup is greater than end chapter popup, + we set the end chapter popup to the same as start chapter popup */ + if ([fSrcChapterStartPopUp indexOfSelectedItem] > [fSrcChapterEndPopUp indexOfSelectedItem]) + { + [fSrcChapterEndPopUp selectItemAtIndex: [fSrcChapterStartPopUp indexOfSelectedItem]]; + } + + + + hb_list_t * list = hb_get_titles( fHandle ); hb_title_t * title = (hb_title_t *) hb_list_item( list, [fSrcTitlePopUp indexOfSelectedItem] ); diff --git a/macosx/English.lproj/MainMenu.nib/info.nib b/macosx/English.lproj/MainMenu.nib/info.nib index f582e6f45..0973bee18 100644 --- a/macosx/English.lproj/MainMenu.nib/info.nib +++ b/macosx/English.lproj/MainMenu.nib/info.nib @@ -19,8 +19,9 @@ IBOpenObjects - 29 1162 + 21 + 29 IBSystem Version 8P2137 diff --git a/macosx/English.lproj/MainMenu.nib/keyedobjects.nib b/macosx/English.lproj/MainMenu.nib/keyedobjects.nib index 79978bf84..9dcc7ae58 100644 Binary files a/macosx/English.lproj/MainMenu.nib/keyedobjects.nib and b/macosx/English.lproj/MainMenu.nib/keyedobjects.nib differ -- cgit v1.2.3