summaryrefslogtreecommitdiffstats
path: root/macosx/HBAudioDefaultsController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2015-10-29 08:55:47 +0100
committerDamiano Galassi <[email protected]>2015-10-29 08:55:47 +0100
commit5adef96a78cc94e75c79dfef5c053023751c2175 (patch)
treee07baa02da2112d62d5a34d777e31a7ad9310950 /macosx/HBAudioDefaultsController.m
parent9dfee71965d031d25d6c6f9cb59e136713af24ce (diff)
MacGui: use an pair of 'OK' and 'Cancel' buttons in the defaults sheets instead of a single done button. Fixed the bitrates and mixdowns popups in the audio defaults.
Diffstat (limited to 'macosx/HBAudioDefaultsController.m')
-rw-r--r--macosx/HBAudioDefaultsController.m15
1 files changed, 9 insertions, 6 deletions
diff --git a/macosx/HBAudioDefaultsController.m b/macosx/HBAudioDefaultsController.m
index cc90879de..7f8db2009 100644
--- a/macosx/HBAudioDefaultsController.m
+++ b/macosx/HBAudioDefaultsController.m
@@ -83,14 +83,17 @@ static void *HBAudioDefaultsContext = &HBAudioDefaultsContext;
}
}
-- (IBAction)done:(id)sender
+- (IBAction)ok:(id)sender
{
+ self.settings.trackSelectionLanguages = [self.languagesList.selectedLanguages mutableCopy];
[self.window orderOut:nil];
- if (self.window.undoManager.canUndo)
- {
- self.settings.trackSelectionLanguages = [self.languagesList.selectedLanguages mutableCopy];
- }
- [NSApp endSheet:self.window returnCode:self.window.undoManager.canUndo];
+ [NSApp endSheet:self.window returnCode:NSModalResponseOK];
+}
+
+- (IBAction)cancel:(id)sender
+{
+ [self.window orderOut:nil];
+ [NSApp endSheet:self.window returnCode:NSModalResponseCancel];
}
- (void)dealloc