]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix the Audio Track selection again.
authorsr55 <sr55.hb@outlook.com>
Tue, 10 Sep 2013 17:49:56 +0000 (17:49 +0000)
committersr55 <sr55.hb@outlook.com>
Tue, 10 Sep 2013 17:49:56 +0000 (17:49 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5779 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs

index 2d17f78a17b1babc160675b74c71591e3ba3a15a..242eca68ecd775edb6464c6a461818f1d38e2212 100644 (file)
@@ -206,7 +206,18 @@ namespace HandBrakeWPF.ViewModels
 \r
             if (preset != null && preset.Task != null)\r
             {\r
+                int mode = this.UserSettingService.GetUserSetting<int>(UserSettingConstants.DubModeAudio);\r
+                if (mode >= 1)\r
+                {\r
+                    this.AutomaticTrackSelection();\r
+                }\r
+                else\r
+                {\r
+                    this.AddTracksFromPreset(preset); \r
+                }\r
+\r
                 this.AutomaticTrackSelection();\r
+\r
                 this.Task.AllowedPassthruOptions = new AllowedPassthru(preset.Task.AllowedPassthruOptions);\r
             }\r
             this.NotifyOfPropertyChange(() => this.Task);\r