summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorritsuka <[email protected]>2007-09-22 10:02:03 +0000
committerritsuka <[email protected]>2007-09-22 10:02:03 +0000
commita96595d1ee20a03661f515c5d52d38d30e110fc0 (patch)
treec808f0aa4692f46724c1e1c48d4bbad8a52ff6fb
parent040b30f124205f63818e8382631d423d9d57c985 (diff)
MacGUI: don't reset codecs popup when changing format, if the new format supports the specified codecs.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@977 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--macosx/Controller.mm6
1 files changed, 6 insertions, 0 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm
index 6cf95624c..4c6f50c96 100644
--- a/macosx/Controller.mm
+++ b/macosx/Controller.mm
@@ -2090,6 +2090,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
- (IBAction) formatPopUpChanged: (id) sender
{
NSString * string = [fDstFile2Field stringValue];
+ NSString * selectedCodecs = [fDstCodecsPopUp titleOfSelectedItem];
int format = [fDstFormatPopUp indexOfSelectedItem];
char * ext = NULL;
/* Initially set the large file (64 bit formatting) output checkbox to hidden */
@@ -2176,6 +2177,11 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
[fCreateChapterMarkers setEnabled: YES];
break;
}
+ if ( SuccessfulScan ) {
+ [fDstCodecsPopUp selectItemWithTitle:selectedCodecs];
+ if ( [fDstCodecsPopUp selectedItem] == NULL )
+ [fDstCodecsPopUp selectItemAtIndex:0];
+ }
[self codecsPopUpChanged: NULL];
/* Add/replace to the correct extension */