mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-29 06:15:24 +00:00
GUI: mux: add -
to default boundary chars for deriving track languages
Inspired by #3173.
This commit is contained in:
parent
1f6f9aba40
commit
5dc52310c2
6
NEWS.md
6
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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user