]> granicus.if.org Git - handbrake/commitdiff
WinGui:
authorsr55 <sr55.hb@outlook.com>
Fri, 24 Jul 2009 17:47:47 +0000 (17:47 +0000)
committersr55 <sr55.hb@outlook.com>
Fri, 24 Jul 2009 17:47:47 +0000 (17:47 +0000)
- 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

index 413847d5161be33da11d28c319198f0eee8bb4be..9059701a59bfa674f3e93568b1476d8181b7cad1 100644 (file)
@@ -715,7 +715,8 @@ namespace Handbrake
                             queueWindow.Show(false);\r
 \r
                         setEncodeStarted(); // Encode is running, so setup the GUI appropriately\r
-                        ActivityWindow.setLogView(false);\r
+                        if (ActivityWindow != null)\r
+                            ActivityWindow.setLogView(false);\r
                         encodeQueue.StartEncodeQueue(); // Start The Queue Encoding Process\r
                         lastAction = "encode";   // Set the last action to encode - Used for activity window.\r
                     }\r
@@ -1390,7 +1391,8 @@ namespace Handbrake
             {\r
                 lbl_encode.Visible = true;\r
                 lbl_encode.Text = "Scanning...";\r
-                ActivityWindow.setLogView(true);\r
+                if (ActivityWindow != null)\r
+                    ActivityWindow.setLogView(true);\r
                 isScanning = true;\r
                 ThreadPool.QueueUserWorkItem(scanProcess, filename);\r
             }\r