OSDN Git Service

WinGui:
authorsr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 28 Apr 2010 18:57:21 +0000 (18:57 +0000)
committersr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 28 Apr 2010 18:57:21 +0000 (18:57 +0000)
- Fix an exception when a parsed source has no Main Title

git-svn-id: svn://localhost/HandBrake/trunk@3276 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/C#/frmMain.cs

index c411699..50a4c8e 100644 (file)
@@ -1704,6 +1704,11 @@ namespace Handbrake
                     }\r
                 }\r
 \r
+                if (drp_dvdtitle.SelectedItem == null && drp_dvdtitle.Items.Count > 0)\r
+                {\r
+                    drp_dvdtitle.SelectedIndex = 0;\r
+                }\r
+\r
                 // Enable the creation of chapter markers if the file is an image of a dvd.\r
                 int start, end;\r
                 int.TryParse(drop_chapterStart.Items[0].ToString(), out start);\r