diff options
author | sr55 <[email protected]> | 2009-02-25 20:50:49 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-02-25 20:50:49 +0000 |
commit | 5e7da391d57ddeaecc53910f1e8daa411706e79b (patch) | |
tree | 823a20d4d0469bae24a6360012a42403d4b13b6a /win/C# | |
parent | 0113160aaf73ba3c2f791af4ef91d5dd66637a31 (diff) |
WinGui:
- Fixes an issue where the preview window would not appear and display an error if QT7 is not installed. Error message is disabled, window will now appear correctly but with QT functionality disabled.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2176 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#')
-rw-r--r-- | win/C#/frmPreview.cs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/win/C#/frmPreview.cs b/win/C#/frmPreview.cs index dabde2bb1..52aabe6f6 100644 --- a/win/C#/frmPreview.cs +++ b/win/C#/frmPreview.cs @@ -18,10 +18,20 @@ namespace Handbrake readonly frmMain mainWindow;
private Process hbProc;
private Thread player;
+ private Boolean noQT;
public frmPreview(frmMain mw)
{
- InitializeComponent();
+ try
+ {
+ InitializeComponent();
+ }
+ catch (Exception exc)
+ {
+ MessageBox.Show("It would appear QuickTime 7 is not installed. 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;
cb_preview.SelectedIndex = 0;
cb_duration.SelectedIndex = 1;
@@ -66,7 +76,8 @@ namespace Handbrake BeginInvoke(new UpdateUIHandler(encodeCompleted));
return;
}
- btn_playQT.Enabled = true;
+ if (!noQT)
+ btn_playQT.Enabled = true;
btn_playVLC.Enabled = true;
// Decide which player to use.
|