From 43c9044e1b67ab7e29f99cd7e3df646d1b7b7684 Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Thu, 21 Dec 2023 19:59:22 +0100 Subject: [PATCH] Fix for remembering auto-translate target language - thx vivodi :) Work on #7761 --- src/ui/Forms/Translate/AutoTranslate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/Forms/Translate/AutoTranslate.cs b/src/ui/Forms/Translate/AutoTranslate.cs index 1160a7996..d4ff8013c 100644 --- a/src/ui/Forms/Translate/AutoTranslate.cs +++ b/src/ui/Forms/Translate/AutoTranslate.cs @@ -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;