summaryrefslogtreecommitdiffstats
path: root/macosx/HBSubtitlesDefaultsController.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/HBSubtitlesDefaultsController.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/HBSubtitlesDefaultsController.m')
-rw-r--r--macosx/HBSubtitlesDefaultsController.m15
1 files changed, 9 insertions, 6 deletions
diff --git a/macosx/HBSubtitlesDefaultsController.m b/macosx/HBSubtitlesDefaultsController.m
index a78a14b48..a4e71bbff 100644
--- a/macosx/HBSubtitlesDefaultsController.m
+++ b/macosx/HBSubtitlesDefaultsController.m
@@ -64,14 +64,17 @@ static void *HBSubtitlesDefaultsContext = &HBSubtitlesDefaultsContext;
self.tableController.showSelectedOnly = !self.tableController.showSelectedOnly;
}
-- (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