mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
parent
134415f639
commit
35de19ec3f
@ -520,8 +520,14 @@ namespace Nikse.SubtitleEdit.Forms.Translate
|
||||
var i = 0;
|
||||
var threeLetterLanguageCode = Iso639Dash2LanguageCode.GetThreeLetterCodeFromTwoLetterCode(languageIsoCode);
|
||||
|
||||
foreach (TranslationPair item in comboBox.Items)
|
||||
foreach (var comboBoxItem in comboBox.Items)
|
||||
{
|
||||
var item = comboBoxItem as TranslationPair;
|
||||
if (item == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(item.TwoLetterIsoLanguageName) && item.TwoLetterIsoLanguageName == languageIsoCode)
|
||||
{
|
||||
comboBox.SelectedIndex = i;
|
||||
|
Loading…
Reference in New Issue
Block a user