Fix for remembering auto-translate target language - thx vivodi :)

Work on #7761
This commit is contained in:
Nikolaj Olsson 2023-12-21 19:59:22 +01:00
parent deb4956035
commit 43c9044e1b

View File

@ -423,7 +423,7 @@ namespace Nikse.SubtitleEdit.Forms.Translate
return;
}
if (item.Code.StartsWith(threeLetterLanguageCode) || item.Code == languageIsoCode)
if (!string.IsNullOrEmpty(threeLetterLanguageCode) && item.Code.StartsWith(threeLetterLanguageCode) || item.Code == languageIsoCode)
{
comboBox.SelectedIndex = i;
return;