From 011230c9a38586594df2cf8bf85fd3f44ebc74eb Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 28 Apr 2010 18:57:21 +0000 Subject: [PATCH] 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 --- win/C#/frmMain.cs | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.40.0