OSDN Git Service

WinGui:
authorsr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 24 Feb 2008 18:47:29 +0000 (18:47 +0000)
committersr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 24 Feb 2008 18:47:29 +0000 (18:47 +0000)
- Fixed small issue with last checkin

git-svn-id: svn://localhost/HandBrake/trunk@1314 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/C#/Functions/Common.cs

index ebeb0c9..244eb14 100644 (file)
@@ -728,7 +728,7 @@ namespace Handbrake.Functions
             if (mainWindow.Check_ChapterMarkers.Checked)\r
             {\r
 \r
-                if (source_name != "Click 'Browse' to continue")\r
+                if (source_name.Trim().Replace("-i ", "") != "Click \'Browse\' to continue")\r
                 {\r
                     if (source_title != "Automatic")\r
                     {\r
@@ -745,8 +745,16 @@ namespace Handbrake.Functions
                     }\r
                     else\r
                     {\r
-                        string path = Path.Combine(Path.GetTempPath(), "chapters.csv");\r
-                        ChapterMarkers = " --markers=" + "\"" + path + "\"";\r
+                        string filename = source_name + "-chapters.csv";\r
+                        string path = Path.Combine(Path.GetTempPath(), filename);\r
+\r
+                        Boolean saveCSV = chapterCSVSave(mainWindow, path);\r
+                        if (saveCSV == false)\r
+                            ChapterMarkers = " -m ";\r
+                        else\r
+                        {\r
+                            ChapterMarkers = " --markers=" + "\"" + path + "\"";\r
+                        }\r
                     }\r
                 }\r
                 else\r