summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--win/C#/frmMain.cs2
-rw-r--r--win/C#/frmReadDVD.cs2
2 files changed, 3 insertions, 1 deletions
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();
}
}