diff options
Diffstat (limited to 'macosx/Controller.m')
-rw-r--r-- | macosx/Controller.m | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m index e4c0ff95e..e1a45d206 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -2043,13 +2043,14 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It /* if not then select the main feature title */ [fSrcTitlePopUp selectItemAtIndex: feature_title]; } - [self titlePopUpChanged:nil]; - + SuccessfulScan = YES; - [self enableUI: YES]; + [self titlePopUpChanged:nil]; [self encodeStartStopPopUpChanged:nil]; + [self enableUI: YES]; + // Open preview window now if it was visible when HB was closed if ([[NSUserDefaults standardUserDefaults] boolForKey:@"PreviewWindowIsOpen"]) [self showPreviewWindow:nil]; @@ -4876,7 +4877,9 @@ the user is using "Custom" settings by determining the sender*/ - (void)applyPreset:(HBPreset *)preset { - if (preset != nil) + self.selectedPreset = preset; + + if (preset != nil && SuccessfulScan) { hb_job_t * job = fTitle->job; @@ -5139,11 +5142,7 @@ the user is using "Custom" settings by determining the sender*/ - (void)selectionDidChange { - self.selectedPreset = fPresetsView.selectedPreset; - if (SuccessfulScan) - { - [self applyPreset:self.selectedPreset]; - } + [self applyPreset:fPresetsView.selectedPreset]; } #pragma mark - @@ -5419,7 +5418,8 @@ the user is using "Custom" settings by determining the sender*/ - (IBAction)selectDefaultPreset:(id)sender { - [fPresetsView selectPreset:presetManager.defaultPreset]; + [self applyPreset:presetManager.defaultPreset]; + [fPresetsView setSelection:_selectedPreset]; } - (IBAction)insertFolder:(id)sender @@ -5444,7 +5444,8 @@ the user is using "Custom" settings by determining the sender*/ i++; }]; - [fPresetsView selectPreset:preset]; + [self applyPreset:preset]; + [fPresetsView setSelection:_selectedPreset]; } /** |