summaryrefslogtreecommitdiffstats
path: root/macosx/HBSubtitlesDefaultsController.m
diff options
context:
space:
mode:
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