* use only primary title for combobox completion

This commit is contained in:
Reinhard Pointner 2015-05-24 23:32:29 +00:00
parent c68c5adb3a
commit ac7a72c477
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ public class SubtitlePanel extends AbstractSearchPanel<SubtitleProvider, Subtitl
protected Collection<String> getHistory(SubtitleProvider engine) throws Exception { protected Collection<String> getHistory(SubtitleProvider engine) throws Exception {
List<String> names = new ArrayList<String>(); List<String> names = new ArrayList<String>();
for (SubtitleSearchResult it : MediaDetection.releaseInfo.getOpenSubtitlesIndex()) { for (SubtitleSearchResult it : MediaDetection.releaseInfo.getOpenSubtitlesIndex()) {
names.addAll(it.getEffectiveNames()); names.add(it.toString());
} }
return names; return names;
}; };