summaryrefslogtreecommitdiffstats
path: root/macosx/HBSubtitles.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBSubtitles.m')
-rw-r--r--macosx/HBSubtitles.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/macosx/HBSubtitles.m b/macosx/HBSubtitles.m
index a61002dcc..1c9b401ff 100644
--- a/macosx/HBSubtitles.m
+++ b/macosx/HBSubtitles.m
@@ -240,6 +240,16 @@ extern NSString *keySubTrackSrtFileURL;
self.defaults.undo = undo;
}
+- (void)setDefaults:(HBSubtitlesDefaults *)defaults
+{
+ if (defaults != _defaults)
+ {
+ [[self.undo prepareWithInvocationTarget:self] setDefaults:_defaults];
+ }
+ _defaults = defaults;
+ _defaults.undo = self.undo;
+}
+
/**
* Convenience method to add a track to subtitlesArray.
*