From 1fb35b03be03367c930be567995d91679b53199c Mon Sep 17 00:00:00 2001 From: sr55 Date: Tue, 29 Apr 2008 21:34:43 +0000 Subject: WinGui: Bug Fixes - frmReadDVD recovers better when an error occurs. - DVD Title dropdown no longer complains about no titles on 1 title sources. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1449 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/frmMain.cs | 2 +- win/C#/frmReadDVD.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'win') diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index e4f79a648..052f1b719 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -499,7 +499,7 @@ namespace Handbrake } private void drp_dvdtitle_Click(object sender, EventArgs e) { - if (drp_dvdtitle.Items.Count == 1) + if ((drp_dvdtitle.Items.Count == 1) && ((string)drp_dvdtitle.Items[0] == "Automatic")) MessageBox.Show("There are no titles to select. Please scan the DVD by clicking the 'browse' button above before trying to select a title.", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } private void drp_dvdtitle_SelectedIndexChanged(object sender, EventArgs e) diff --git a/win/C#/frmReadDVD.cs b/win/C#/frmReadDVD.cs index 98f2110d1..4c62658f6 100644 --- a/win/C#/frmReadDVD.cs +++ b/win/C#/frmReadDVD.cs @@ -111,6 +111,7 @@ namespace Handbrake catch (Exception exc) { MessageBox.Show("frmReadDVD.cs - updateUIElements " + exc.ToString()); + this.Close(); } } @@ -152,6 +153,7 @@ namespace Handbrake catch (Exception exc) { MessageBox.Show("frmReadDVD.cs - startProc " + exc.ToString()); + this.Close(); } } -- cgit v1.2.3