diff options
author | sr55 <[email protected]> | 2010-10-30 14:01:45 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-10-30 14:01:45 +0000 |
commit | eb0f5af88fc547eb58079da36df6d5fbd1072f1c (patch) | |
tree | 8b1268c7a84eb55bfe490bf375295dc4857daf55 /win/C#/Controls/AudioPanel.cs | |
parent | 1c0951a0d7d23dd2f85efa83f87ed3a59ec78737 (diff) |
WinGui:
- Fix a bug in the audio panel where changing selected audio track would incorrectly set the audio bit-rate control dropdown
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3629 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Controls/AudioPanel.cs')
-rw-r--r-- | win/C#/Controls/AudioPanel.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/win/C#/Controls/AudioPanel.cs b/win/C#/Controls/AudioPanel.cs index 888c91c9f..e5f37d675 100644 --- a/win/C#/Controls/AudioPanel.cs +++ b/win/C#/Controls/AudioPanel.cs @@ -638,8 +638,13 @@ namespace Handbrake.Controls drp_audioBitrate.Items.Add("768");
}
- if (drp_audioBitrate.SelectedItem == null)
+ if (drp_audioBitrate.SelectedItem == null && audioList.SelectedRows.Count == 0)
drp_audioBitrate.SelectedIndex = drp_audioBitrate.Items.Count - 1;
+
+ if (drp_audioBitrate.SelectedItem == null && audioList.SelectedRows.Count != 0 && (string)this.audioList.SelectedRows[0].Cells[5].Value == "Auto")
+ {
+ drp_audioBitrate.SelectedItem = "160";
+ }
}
/// <summary>
|