From 63589dc23e487ff7d2b839e74dc65d6157f02a22 Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 23 Apr 2010 22:10:44 +0000 Subject: WinGui: - Updated to make sure of the MainFeature feature. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3256 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/frmMain.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'win/C#/frmMain.cs') diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 0894d6a81..763f2d360 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -1686,9 +1686,13 @@ namespace Handbrake if (currentSource.Titles.Count != 0) drp_dvdtitle.Items.AddRange(currentSource.Titles.ToArray()); - // Now select the longest title - if (currentSource.Titles.Count != 0) - drp_dvdtitle.SelectedItem = Main.SelectLongestTitle(currentSource); + foreach (Title title in currentSource.Titles) + { + if (title.MainTitle) + { + drp_dvdtitle.SelectedItem = title; + } + } // Enable the creation of chapter markers if the file is an image of a dvd. int start, end; -- cgit v1.2.3