From de8a889c21bfc2d7c9faa957d4b95450247c9628 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 18 Jul 2009 11:43:18 +0000 Subject: WinGui: - Small bugfix to make sure the correct native language audio track is selected. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2712 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Controls/AudioPanel.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'win/C#') diff --git a/win/C#/Controls/AudioPanel.cs b/win/C#/Controls/AudioPanel.cs index ef8d87048..67ee331d9 100644 --- a/win/C#/Controls/AudioPanel.cs +++ b/win/C#/Controls/AudioPanel.cs @@ -18,7 +18,7 @@ namespace Handbrake.Controls InitializeComponent(); drp_audioMix.SelectedIndex = 0; } - + // Audio Track Options private void drp_audioTrack_SelectedIndexChanged(object sender, EventArgs e) { @@ -239,7 +239,10 @@ namespace Handbrake.Controls foreach (object item in drp_audioTrack.Items) { if (item.ToString().Contains(Properties.Settings.Default.NativeLanguage)) + { drp_audioTrack.SelectedIndex = i; + break; + } i++; } @@ -335,7 +338,7 @@ namespace Handbrake.Controls drp_audioBitrate.Items.Add("384"); else drp_audioBitrate.Items.Remove("384"); - } + } else { drp_audioBitrate.Items.Remove("192"); -- cgit v1.2.3