summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs4
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs2
2 files changed, 4 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs
index 70de20c67..ec757034b 100644
--- a/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs
@@ -476,8 +476,10 @@ namespace HandBrakeWPF.ViewModels
foreach (AudioBehaviourTrack item in preset.AudioTrackBehaviours.BehaviourTracks)
{
- this.AudioBehaviours.BehaviourTracks.Add(new AudioBehaviourTrack(item));
+ this.BehaviourTracks.Add(new AudioBehaviourTrack(item));
}
+
+ this.NotifyOfPropertyChange(() => this.BehaviourTracks);
foreach (string selectedItem in behaviours.SelectedLangauges)
{
diff --git a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs
index 2706e8e83..7c7c3df3c 100644
--- a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs
@@ -394,7 +394,7 @@ namespace HandBrakeWPF.ViewModels
}
// Step 3, Setup the tracks from the preset
- foreach (AudioBehaviourTrack track in this.currentPreset.AudioTrackBehaviours.BehaviourTracks)
+ foreach (AudioBehaviourTrack track in this.AudioBehaviours.BehaviourTracks)
{
this.Task.AudioTracks.Add(new AudioTrack(track) { ScannedTrack = this.GetPreferredAudioTrack() });
}