From 17cd34a5dc137cf05265af9f7dcdff38a3624b0d Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 25 Nov 2009 12:51:48 +0000 Subject: WinGui: - Preview Window: Handle the lack of QuickTime in a more user friendly fashion. - Switch default .NET to 3.5 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2974 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/frmPreview.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'win/C#/frmPreview.cs') diff --git a/win/C#/frmPreview.cs b/win/C#/frmPreview.cs index 59e6c2520..078a15e4d 100644 --- a/win/C#/frmPreview.cs +++ b/win/C#/frmPreview.cs @@ -28,10 +28,8 @@ namespace Handbrake { InitializeComponent(); } - catch (Exception exc) + catch (Exception) { - MessageBox.Show(mw, "It would appear QuickTime 7 is not installed or not accessible. QuickTime preview functionality will be disabled! \n\n Debug Info:\n" + exc, "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); - btn_playQT.Enabled = false; noQT = true; } this.mainWindow = mw; @@ -64,6 +62,11 @@ namespace Handbrake } private void btn_playQT_Click(object sender, EventArgs e) { + if (noQT) + { + MessageBox.Show(this, "It would appear QuickTime 7 is not installed or not accessible. Please (re)install QuickTime.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } if (mainWindow.text_destination.Text.Contains(".mkv")) { MessageBox.Show(this, -- cgit v1.2.3