[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]];
}
_dataSource = dataSource;
_sourceTrackIdx = index;
_container = container;
+ _title = [dataSource sourceTrackAtIndex:_sourceTrackIdx].title;
[self validateSettings];
if (!(self.undo.isUndoing || self.undo.isRedoing))
{
+ self.title = [self.dataSource sourceTrackAtIndex:_sourceTrackIdx].title;
+
[self validateSettings];
if (oldIdx != sourceTrackIdx)
_dataSource = dataSource;
_sourceTrackIdx = index;
_container = container;
+ _title = [dataSource sourceTrackAtIndex:_sourceTrackIdx].title;
[self validateSettings];
if (!(self.undo.isUndoing || self.undo.isRedoing))
{
+ self.title = [self.dataSource sourceTrackAtIndex:_sourceTrackIdx].title;
+
[self validateSettings];
if (oldIdx != sourceTrackIdx)