diff options
-rw-r--r-- | macosx/HBAudio.m | 3 | ||||
-rw-r--r-- | macosx/HBAudioTrack.m | 3 | ||||
-rw-r--r-- | macosx/HBSubtitlesTrack.m | 3 |
3 files changed, 8 insertions, 1 deletions
diff --git a/macosx/HBAudio.m b/macosx/HBAudio.m index 549c87d34..14ef1afdd 100644 --- a/macosx/HBAudio.m +++ b/macosx/HBAudio.m @@ -101,7 +101,8 @@ NSString *HBAudioEncoderChangedNotification = @"HBAudioEncoderChangedNotificatio [self removeTracksAtIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, self.tracks.count)]]; // Add the remaining tracks - for (NSUInteger idx = 1; idx < self.sourceTracksArray.count; idx++) { + for (NSUInteger idx = 1; idx < self.sourceTracksArray.count; idx++) + { [self addTrack:[self trackFromSourceTrackIndex:idx]]; } diff --git a/macosx/HBAudioTrack.m b/macosx/HBAudioTrack.m index 178dad195..4ec01eff0 100644 --- a/macosx/HBAudioTrack.m +++ b/macosx/HBAudioTrack.m @@ -45,6 +45,7 @@ _dataSource = dataSource; _sourceTrackIdx = index; _container = container; + _title = [dataSource sourceTrackAtIndex:_sourceTrackIdx].title; [self validateSettings]; @@ -91,6 +92,8 @@ if (!(self.undo.isUndoing || self.undo.isRedoing)) { + self.title = [self.dataSource sourceTrackAtIndex:_sourceTrackIdx].title; + [self validateSettings]; if (oldIdx != sourceTrackIdx) diff --git a/macosx/HBSubtitlesTrack.m b/macosx/HBSubtitlesTrack.m index fa17d72a0..019c89cf9 100644 --- a/macosx/HBSubtitlesTrack.m +++ b/macosx/HBSubtitlesTrack.m @@ -55,6 +55,7 @@ static NSArray *_languagesArray = nil; _dataSource = dataSource; _sourceTrackIdx = index; _container = container; + _title = [dataSource sourceTrackAtIndex:_sourceTrackIdx].title; [self validateSettings]; @@ -121,6 +122,8 @@ static NSArray *_languagesArray = nil; if (!(self.undo.isUndoing || self.undo.isRedoing)) { + self.title = [self.dataSource sourceTrackAtIndex:_sourceTrackIdx].title; + [self validateSettings]; if (oldIdx != sourceTrackIdx) |