summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF
diff options
context:
space:
mode:
authorsr55 <[email protected]>2013-09-10 17:49:56 +0000
committersr55 <[email protected]>2013-09-10 17:49:56 +0000
commitf081a47dd2b985c2b75eb64e3c83907a6b1ba95e (patch)
tree3dc02ba933a5013d48083efd4229a5ff77070946 /win/CS/HandBrakeWPF
parent0f16fb2d90fe5caf6a8b30f6791a3876091bda6c (diff)
WinGui: Fix the Audio Track selection again.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5779 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs
index 2d17f78a1..242eca68e 100644
--- a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs
@@ -206,7 +206,18 @@ namespace HandBrakeWPF.ViewModels
if (preset != null && preset.Task != null)
{
+ int mode = this.UserSettingService.GetUserSetting<int>(UserSettingConstants.DubModeAudio);
+ if (mode >= 1)
+ {
+ this.AutomaticTrackSelection();
+ }
+ else
+ {
+ this.AddTracksFromPreset(preset);
+ }
+
this.AutomaticTrackSelection();
+
this.Task.AllowedPassthruOptions = new AllowedPassthru(preset.Task.AllowedPassthruOptions);
}
this.NotifyOfPropertyChange(() => this.Task);