mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-02-26 08:22:31 +00:00
Chapter default value dialog: select the first value
Some language codes occur multiple times, especially "und" for "undetermined". The first entry with "und" is translated, the other one is not, so select the first occurence and not the last one.
This commit is contained in:
parent
79dc2d1155
commit
da9ee9f8a9
@ -153,10 +153,13 @@ chapter_values_dlg::chapter_values_dlg(wxWindow *parent,
|
||||
siz_all->Add(siz_input, 0, wxGROW | wxLEFT | wxRIGHT, 10);
|
||||
siz_all->AddSpacer(10);
|
||||
|
||||
bool found = false;
|
||||
for (i = 0; i < sorted_iso_codes.Count(); i++) {
|
||||
cob_language->Append(sorted_iso_codes[i]);
|
||||
if (extract_language_code(sorted_iso_codes[i]) == old_def_language)
|
||||
if (!found && (extract_language_code(sorted_iso_codes[i]) == old_def_language)) {
|
||||
cob_language->SetValue(sorted_iso_codes[i]);
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
|
||||
cob_country->Append(wxEmptyString);
|
||||
|
Loading…
Reference in New Issue
Block a user