diff options
author | sr55 <[email protected]> | 2009-10-04 14:58:41 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-10-04 14:58:41 +0000 |
commit | ce793fa5ebd19fafb38287bcb011e2c93ca32216 (patch) | |
tree | fbbe778ba1b241d4257ec7f73ae11567e042d6a9 | |
parent | 8e64e5d1821d1699bc019c8d362e9a0a76080b14 (diff) |
WinGui:
- Reset the Subtitles panel on Source or Title change. This can be made smarter later.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2865 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | win/C#/Controls/Subtitles.cs | 4 | ||||
-rw-r--r-- | win/C#/frmMain.cs | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/win/C#/Controls/Subtitles.cs b/win/C#/Controls/Subtitles.cs index efe63df15..14e7bab1d 100644 --- a/win/C#/Controls/Subtitles.cs +++ b/win/C#/Controls/Subtitles.cs @@ -24,6 +24,10 @@ namespace Handbrake.Controls private int FileContainer;
// Public Functions
+ public void Clear()
+ {
+ lv_subList.Items.Clear();
+ }
public void setSubtitleTrackAuto()
{
// Handle Native Language and "Dub Foreign language audio" and "Use Foreign language audio and Subtitles" Options
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 2be9b168b..510454dab 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -949,6 +949,7 @@ namespace Handbrake Subtitles.drp_subtitleTracks.Items.Add("Foreign Audio Search (Bitmap)");
Subtitles.drp_subtitleTracks.Items.AddRange(selectedTitle.Subtitles.ToArray());
Subtitles.drp_subtitleTracks.SelectedIndex = 0;
+ Subtitles.Clear();
Subtitles.setSubtitleTrackAuto();
}
|