GUI: mux: add - to default boundary chars for deriving track languages

Inspired by #3173.
This commit is contained in:
Moritz Bunkus 2021-07-31 22:13:47 +02:00
parent 1f6f9aba40
commit 5dc52310c2
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85
2 changed files with 17 additions and 1 deletions

View File

@ -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

View File

@ -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<QColor>