Avoid enabling unsupported tracks in the file import sheet.

This commit is contained in:
Damiano Galassi committed 2016-08-03 12:06:39 +02:00
1 parent 26fd906857
commit c16ec2dc02
1 file changed
+5 -1
+5 -1
View File
@@ -374,7 +374,11 @@
}
[selection enumerateIndexesUsingBlock:^(NSUInteger idx, BOOL *stop) {
self->_importCheckArray[idx] = @(value);
MP42Track *track = self->_tracks[idx];
if ([track isKindOfClass:[MP42Track class]] &&
(isTrackMuxable(track.format) || trackNeedConversion(track.format))) {
self->_importCheckArray[idx] = @(value);
}
}];
[tracksTableView reloadDataForRowIndexes:selection columnIndexes:[NSIndexSet indexSetWithIndex:0]];