diff --git a/NEWS.md b/NEWS.md index d4a011253..57346e03a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,11 @@ # Version ? +## New features and enhancements + +* MKVToolNix GUI: multiplexer: deriving track languages from file names: the + default list of boundary characters now includes `-`. Part of the + implementation of #3173. + ## Build system changes * all: `std::codecvt_utf8` is now used instead of Boost's diff --git a/src/mkvtoolnix-gui/util/settings.cpp b/src/mkvtoolnix-gui/util/settings.cpp index b8ad0684a..b38cf1351 100644 --- a/src/mkvtoolnix-gui/util/settings.cpp +++ b/src/mkvtoolnix-gui/util/settings.cpp @@ -303,6 +303,16 @@ Settings::convertOldSettings() { reg->remove(s_valMergeLastAddingAppendingDecision); } reg->endGroup(); + + // After v60: boundary characters for detecting track languages have changed. + if (writtenByVersion <= version_number_t{"60.0.0.2"}) { + reg->beginGroup(s_grpSettings); + reg->beginGroup(s_grpDerivingTrackLanguagesFromFileNames); + if (reg->value(s_valBoundaryChars) == Q("[](){}.+=#")) + reg->setValue(s_valBoundaryChars, defaultBoundaryCharsForDerivingLanguageFromFileName()); + reg->endGroup(); + reg->endGroup(); + } } void @@ -1110,7 +1120,7 @@ Settings::determineMediaInfoExePath() { QString Settings::defaultBoundaryCharsForDerivingLanguageFromFileName() { - return Q("[](){}.+=#"); + return Q("[](){}.+-=#"); } QVector