From: sr55 Date: Wed, 28 Apr 2010 18:57:21 +0000 (+0000) Subject: WinGui: X-Git-Tag: 0.9.5~458 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=011230c9a38586594df2cf8bf85fd3f44ebc74eb;p=handbrake 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 --- 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);