Add fallback for unknown extended language tags.

This commit is contained in:
Damiano Galassi committed 2016-11-30 11:37:38 +01:00
1 parent 93b4655294
commit ea1fe8fac0
1 file changed
+4
+4
View File
@@ -583,6 +583,10 @@ static NSDictionary *_detailMonospacedAttr;
popUpCell.popUpButton.menu = [_languagesMenu copy];
}
[popUpCell.popUpButton selectItemWithTitle:[MP42Languages.defaultManager localizedLangForExtendedTag:track.language]];
if (popUpCell.popUpButton.indexOfSelectedItem == -1) {
[popUpCell.popUpButton addItemWithTitle:track.language];
[popUpCell.popUpButton selectItemWithTitle:track.language];
}
cell = popUpCell;
}
}