summaryrefslogtreecommitdiffstats
path: root/win/C#/Controls/AudioPanel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-07-18 11:21:42 +0000
committersr55 <[email protected]>2009-07-18 11:21:42 +0000
commit9148e415545807b62354fd26cb7e640fb8d3ee7e (patch)
tree5f4c975f9f0af4e0ac4d1c91d5d8d4da77b260f5 /win/C#/Controls/AudioPanel.cs
parent5a1dbbd9e19859d8de91c1e99ecb6577929deed2 (diff)
WinGui:
- Added Subtitles support for the last check-in. - Fixed a few bugs in the new Audio handling code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2711 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Controls/AudioPanel.cs')
-rw-r--r--win/C#/Controls/AudioPanel.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/win/C#/Controls/AudioPanel.cs b/win/C#/Controls/AudioPanel.cs
index c846f5055..ef8d87048 100644
--- a/win/C#/Controls/AudioPanel.cs
+++ b/win/C#/Controls/AudioPanel.cs
@@ -244,8 +244,16 @@ namespace Handbrake.Controls
i++;
}
- foreach (ListViewItem item in lv_audioList.Items)
- item.SubItems[1].Text = drp_audioTrack.SelectedItem.ToString();
+ if (drp_audioTrack.SelectedItem != null)
+ foreach (ListViewItem item in lv_audioList.Items)
+ item.SubItems[1].Text = drp_audioTrack.SelectedItem.ToString();
+ else
+ {
+ drp_audioTrack.SelectedIndex = 0;
+ if (drp_audioTrack.SelectedItem != null)
+ foreach (ListViewItem item in lv_audioList.Items)
+ item.SubItems[1].Text = drp_audioTrack.SelectedItem.ToString();
+ }
}
else
drp_audioTrack.SelectedIndex = 0; // "Use Foreign language audio and Subtitles"