summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/Controller.m')
-rw-r--r--macosx/Controller.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m
index 6aea1507d..92d31a822 100644
--- a/macosx/Controller.m
+++ b/macosx/Controller.m
@@ -4958,6 +4958,16 @@ the user is using "Custom" settings by determining the sender*/
#pragma mark -
+@synthesize hasValidPresetSelected;
+
+// This causes all audio tracks from the title to be used based on the current preset
+- (IBAction) addAllAudioTracks: (id) sender
+
+{
+ [fAudioDelegate addAllTracksFromPreset: [fPresetsOutlineView itemAtRow:[fPresetsOutlineView selectedRow]]];
+ return;
+}
+
- (IBAction) browseImportSrtFile: (id) sender
{
@@ -5421,6 +5431,7 @@ return YES;
if ([fPresetsOutlineView selectedRow] >= 0 && [[[fPresetsOutlineView itemAtRow:[fPresetsOutlineView selectedRow]] objectForKey:@"Folder"] intValue] != 1)
{
+ [self setHasValidPresetSelected: YES];
chosenPreset = [fPresetsOutlineView itemAtRow:[fPresetsOutlineView selectedRow]];
[fPresetSelectedDisplay setStringValue:[chosenPreset objectForKey:@"PresetName"]];
@@ -5741,6 +5752,9 @@ return YES;
[fPictureController SetTitle:fTitle];
[self calculatePictureSizing:nil];
}
+ else {
+ [self setHasValidPresetSelected: NO];
+ }
}