From c957d78b0d6c5a7cea326118fe390ced1e231a86 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 24 Feb 2008 18:47:29 +0000 Subject: WinGui: - Fixed small issue with last checkin git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1314 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Functions/Common.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'win/C#') diff --git a/win/C#/Functions/Common.cs b/win/C#/Functions/Common.cs index ebeb0c9c6..244eb142e 100644 --- a/win/C#/Functions/Common.cs +++ b/win/C#/Functions/Common.cs @@ -728,7 +728,7 @@ namespace Handbrake.Functions if (mainWindow.Check_ChapterMarkers.Checked) { - if (source_name != "Click 'Browse' to continue") + if (source_name.Trim().Replace("-i ", "") != "Click \'Browse\' to continue") { if (source_title != "Automatic") { @@ -745,8 +745,16 @@ namespace Handbrake.Functions } else { - string path = Path.Combine(Path.GetTempPath(), "chapters.csv"); - ChapterMarkers = " --markers=" + "\"" + path + "\""; + string filename = source_name + "-chapters.csv"; + string path = Path.Combine(Path.GetTempPath(), filename); + + Boolean saveCSV = chapterCSVSave(mainWindow, path); + if (saveCSV == false) + ChapterMarkers = " -m "; + else + { + ChapterMarkers = " --markers=" + "\"" + path + "\""; + } } } else -- cgit v1.2.3