summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services
diff options
context:
space:
mode:
authorsr55 <[email protected]>2016-01-23 14:44:49 +0000
committersr55 <[email protected]>2016-01-23 14:44:49 +0000
commit29d19a53a34a48791effbee9b0461666a593eac8 (patch)
tree08ab6ede829990fdddf1f3c0fbf5423e62d27c9e /win/CS/HandBrakeWPF/Services
parentf363762a083dac542e59db135fcdb90cda0a8562 (diff)
WinGui: Fix an issue loading the language lists in the Audio / Subtitle default tabs.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services')
-rw-r--r--win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs b/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs
index 9e958a0aa..9cdb554d1 100644
--- a/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs
+++ b/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs
@@ -335,9 +335,10 @@ namespace HandBrakeWPF.Services.Presets.Factories
if (importedPreset.AudioLanguageList != null)
{
- foreach (var item in importedPreset.AudioLanguageList)
+ IList<string> names = LanguageUtilities.GetLanguageNames(importedPreset.AudioLanguageList);
+ foreach (var name in names)
{
- preset.AudioTrackBehaviours.SelectedLangauges.Add(item);
+ preset.AudioTrackBehaviours.SelectedLangauges.Add(name);
}
}
@@ -376,13 +377,14 @@ namespace HandBrakeWPF.Services.Presets.Factories
preset.SubtitleTrackBehaviours.AddForeignAudioScanTrack = importedPreset.SubtitleAddForeignAudioSearch;
if (importedPreset.SubtitleLanguageList != null)
{
- foreach (var item in importedPreset.SubtitleLanguageList)
+ IList<string> names = LanguageUtilities.GetLanguageNames(importedPreset.SubtitleLanguageList);
+ foreach (var name in names)
{
- preset.SubtitleTrackBehaviours.SelectedLangauges.Add(item);
+ preset.SubtitleTrackBehaviours.SelectedLangauges.Add(name);
}
}
- /* Chapter Marker Settings */
+ /* Chapter Marker Settings */
preset.Task.IncludeChapterMarkers = importedPreset.ChapterMarkers;
/* Advanced Settings */