From db56dba1aa71d52eb6f1b1c2d1d3ad2c11b47df7 Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 24 Jul 2009 17:47:47 +0000 Subject: [PATCH] WinGui: - Fix an exception if the ActivityWindow was not initialised before the first scan. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2728 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/frmMain.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 413847d51..9059701a5 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -715,7 +715,8 @@ namespace Handbrake queueWindow.Show(false); setEncodeStarted(); // Encode is running, so setup the GUI appropriately - ActivityWindow.setLogView(false); + if (ActivityWindow != null) + ActivityWindow.setLogView(false); encodeQueue.StartEncodeQueue(); // Start The Queue Encoding Process lastAction = "encode"; // Set the last action to encode - Used for activity window. } @@ -1390,7 +1391,8 @@ namespace Handbrake { lbl_encode.Visible = true; lbl_encode.Text = "Scanning..."; - ActivityWindow.setLogView(true); + if (ActivityWindow != null) + ActivityWindow.setLogView(true); isScanning = true; ThreadPool.QueueUserWorkItem(scanProcess, filename); } -- 2.40.0