diff options
Diffstat (limited to 'macosx/HBSubtitlesTrack.m')
-rw-r--r-- | macosx/HBSubtitlesTrack.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBSubtitlesTrack.m b/macosx/HBSubtitlesTrack.m index a654fef48..795aa68c5 100644 --- a/macosx/HBSubtitlesTrack.m +++ b/macosx/HBSubtitlesTrack.m @@ -220,7 +220,7 @@ NSString *keySubTrackExternalFileURLBookmark = @"keySubTrackSrtFileURLBookmark"; - (void)setIsoLanguage:(NSString *)isoLanguage { - if (![isoLanguage isEqualToString:_isoLanguage]) + if (_isoLanguage != isoLanguage || (_isoLanguage && ![isoLanguage isEqualToString:_isoLanguage])) { [[self.undo prepareWithInvocationTarget:self] setIsoLanguage:_isoLanguage]; } @@ -229,7 +229,7 @@ NSString *keySubTrackExternalFileURLBookmark = @"keySubTrackSrtFileURLBookmark"; - (void)setCharCode:(NSString *)charCode { - if (![charCode isEqualToString:_charCode]) + if (_charCode != charCode || (_charCode && ![charCode isEqualToString:_charCode])) { [[self.undo prepareWithInvocationTarget:self] setCharCode:_charCode]; } |