Don't mark the document as modified when resetting the same track language.

This commit is contained in:
Damiano Galassi committed 2016-11-22 12:37:08 +01:00
1 parent 8744676fe8
commit f9e230ff9a
1 file changed
+3 -2
+3 -2
View File
@@ -648,9 +648,10 @@ static NSDictionary *_detailMonospacedAttr;
- (IBAction)setTrackLanguage:(NSComboBox *)sender {
NSInteger row = [self.tracksTable rowForView:sender];
MP42Track *track = [self trackAtAtTableRow:row];
NSString *language = [MP42Languages ISO_639_2CodeForLang:sender.stringValue];
if (track && ![sender.stringValue isEqualToString:track.name]) {
track.language = [MP42Languages ISO_639_2CodeForLang:sender.stringValue];
if (track && ![language isEqualToString:track.language]) {
track.language = language;
[self updateChangeCount:NSChangeDone];
}
}