]> granicus.if.org Git - handbrake/commitdiff
MacGui: Chapter Popup fix condition where user can select a start chapter greater...
authordynaflash <dynaflashtech@gmail.com>
Tue, 19 Jun 2007 15:18:11 +0000 (15:18 +0000)
committerdynaflash <dynaflashtech@gmail.com>
Tue, 19 Jun 2007 15:18:11 +0000 (15:18 +0000)
- 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
macosx/English.lproj/MainMenu.nib/info.nib
macosx/English.lproj/MainMenu.nib/keyedobjects.nib

index 0537815c1fcb8c33f6e40710f7e294585aab5f2c..e07f925d0ba36b027573bdac3618d8b0dc7ac8f9 100644 (file)
@@ -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] );
 
index f582e6f452de89d48b7a838fee54cdd71323f0e7..0973bee1845b5d603c4a8e327508d904622b752d 100644 (file)
@@ -19,8 +19,9 @@
        </array>
        <key>IBOpenObjects</key>
        <array>
-               <integer>29</integer>
                <integer>1162</integer>
+               <integer>21</integer>
+               <integer>29</integer>
        </array>
        <key>IBSystem Version</key>
        <string>8P2137</string>
index 79978bf847b190152838d7280465a01c138312f9..9dcc7ae58d6c5458d51086b5f07416cae0b87731 100644 (file)
Binary files a/macosx/English.lproj/MainMenu.nib/keyedobjects.nib and b/macosx/English.lproj/MainMenu.nib/keyedobjects.nib differ