diff --git a/src/mkvtoolnix-gui/util/settings.cpp b/src/mkvtoolnix-gui/util/settings.cpp index 59d56b100..b77273167 100644 --- a/src/mkvtoolnix-gui/util/settings.cpp +++ b/src/mkvtoolnix-gui/util/settings.cpp @@ -475,7 +475,8 @@ Settings::setDefaults(std::optional enableMuxingTracksByTheseTypes) { if (m_recognizedTrackLanguagesInFileNames.isEmpty()) for (auto const &language : mtx::iso639::g_languages) - m_recognizedTrackLanguagesInFileNames << Q(language.alpha_3_code); + if (!language.alpha_2_code.empty()) + m_recognizedTrackLanguagesInFileNames << Q(language.alpha_3_code); if (m_regexForDerivingTrackLanguagesFromFileNames.isEmpty()) m_regexForDerivingTrackLanguagesFromFileNames = mtx::gui::Merge::SourceFile::defaultRegexForDerivingLanguageFromFileName();