diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs index 9d04261b0..643daaccc 100644 --- a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs @@ -337,7 +337,15 @@ namespace HandBrakeWPF.ViewModels return false;
}
- if (preset.AudioTrackBehaviours.SelectedLangauges != this.AudioBehaviours.SelectedLangauges)
+ foreach (var language in preset.AudioTrackBehaviours.SelectedLangauges)
+ {
+ if (!this.AudioBehaviours.SelectedLangauges.Contains(language))
+ {
+ return false;
+ }
+ }
+
+ if (preset.AudioTrackBehaviours.SelectedLangauges.Count != this.AudioBehaviours.SelectedLangauges.Count)
{
return false;
}
|