OSDN Git Service

LinGui: don't remove srt subs when changing from mkv to mp4
[handbrake-jp/handbrake-jp-git.git] / win / C# / frmActivityWindow.cs
index 8b2135d..9509500 100644 (file)
@@ -33,6 +33,8 @@ namespace Handbrake
             _encodeQueue = eh;\r
             _mainWin = mw;\r
 \r
+            fileNotFoundQuickFix = false;\r
+\r
             if (file == "last_scan_log.txt")\r
                 SetLogView(true);\r
             else\r
@@ -174,7 +176,7 @@ namespace Handbrake
 \r
                 // Copy the log file.\r
                 if (File.Exists(logFile))\r
-                    File.Copy(logFile, logFile2);\r
+                    File.Copy(logFile, logFile2, true);\r
                 else\r
                 {\r
                     if (fileNotFoundQuickFix)\r
@@ -183,8 +185,6 @@ namespace Handbrake
                     return "\n\n\nERROR: The log file could not be found. \nMaybe you cleared your system's tempory folder or maybe you just havn't run an encode yet. \nTried to find the log file in: " + logFile;\r
                 }\r
                    \r
-\r
-                // Open the copied log file for reading\r
                 StreamReader sr = new StreamReader(logFile2);\r
                 string line;\r
                 int i = 1;\r
@@ -204,9 +204,8 @@ namespace Handbrake
             }\r
             catch (Exception exc)\r
             {\r
-                MessageBox.Show("Error in ReadFile() \n Unable to read the log file.\n You may have to restart HandBrake.\n  Error Information: \n\n" + exc, "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
+                return "Error in ReadFile() \n Unable to read the log file.\n You may have to restart HandBrake. Will try reading the file again in a few seconds... \n  Error Information: \n\n" + exc;\r
             }\r
-            return null;\r
         }\r
 \r
         protected override void OnClosing(CancelEventArgs e)\r