]> granicus.if.org Git - handbrake/commitdiff
WinGui: Some behavioural fixes to the Audio Defaults when loading and saving presets.
authorsr55 <sr55.hb@outlook.com>
Mon, 27 Jun 2016 19:39:49 +0000 (20:39 +0100)
committersr55 <sr55.hb@outlook.com>
Mon, 27 Jun 2016 19:39:49 +0000 (20:39 +0100)
win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs
win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs

index 70de20c678194131ba5eaac02b1bf66d22c53e8f..ec757034b319ad224a1ccd55d1029e3464434fb2 100644 (file)
@@ -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)
                 {
index 2706e8e839de240aa1a1d66b79dea89488155cd9..7c7c3df3c5f29334f0eb46e9c8fa3a429c7aa20f 100644 (file)
@@ -394,7 +394,7 @@ namespace HandBrakeWPF.ViewModels
             }\r
 \r
             // Step 3, Setup the tracks from the preset\r
-            foreach (AudioBehaviourTrack track in this.currentPreset.AudioTrackBehaviours.BehaviourTracks)\r
+            foreach (AudioBehaviourTrack track in this.AudioBehaviours.BehaviourTracks)\r
             {\r
                 this.Task.AudioTracks.Add(new AudioTrack(track) { ScannedTrack = this.GetPreferredAudioTrack() });\r
             }\r