summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-04-28 18:57:21 +0000
committersr55 <[email protected]>2010-04-28 18:57:21 +0000
commit011230c9a38586594df2cf8bf85fd3f44ebc74eb (patch)
treefeee9d7ebae16f3df238008d0b1a63c8d1e13bc5 /win
parenta4313535b8ac1dd01ce42e5590dddb3d9ca7ee5c (diff)
WinGui:
- Fix an exception when a parsed source has no Main Title git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3276 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r--win/C#/frmMain.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index c4116997d..50a4c8ef6 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -1704,6 +1704,11 @@ namespace Handbrake
}
}
+ if (drp_dvdtitle.SelectedItem == null && drp_dvdtitle.Items.Count > 0)
+ {
+ drp_dvdtitle.SelectedIndex = 0;
+ }
+
// Enable the creation of chapter markers if the file is an image of a dvd.
int start, end;
int.TryParse(drop_chapterStart.Items[0].ToString(), out start);