From 59f4fbb6827811bf0f428c529dbfcccc09eee95e Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 17 Aug 2008 19:34:13 +0000 Subject: WinGui: - Fixed stupid mistake with query generator and the dvd chapters being set to auto git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1636 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Functions/Common.cs | 6 ++++-- win/C#/HandBrakeCS.sln | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'win') diff --git a/win/C#/Functions/Common.cs b/win/C#/Functions/Common.cs index 8f874aaa3..f0cab1cde 100644 --- a/win/C#/Functions/Common.cs +++ b/win/C#/Functions/Common.cs @@ -432,9 +432,11 @@ namespace Handbrake.Functions query += " -t " + titleInfo[0]; } - if (mainWindow.drop_chapterFinish.Text == mainWindow.drop_chapterStart.Text) + if (mainWindow.drop_chapterFinish.Text == mainWindow.drop_chapterStart.Text && mainWindow.drop_chapterStart.Text != "Auto") query += " -c " + mainWindow.drop_chapterStart.Text; - else + else if (mainWindow.drop_chapterStart.Text == "Auto" && mainWindow.drop_chapterFinish.Text != "Auto") + query += " -c " + "0-" + mainWindow.drop_chapterFinish.Text; + else if (mainWindow.drop_chapterStart.Text != "Auto" && mainWindow.drop_chapterFinish.Text != "Auto") query += " -c " + mainWindow.drop_chapterStart.Text + "-" + mainWindow.drop_chapterFinish.Text; #endregion diff --git a/win/C#/HandBrakeCS.sln b/win/C#/HandBrakeCS.sln index be0c50c6a..81ce84ca6 100644 --- a/win/C#/HandBrakeCS.sln +++ b/win/C#/HandBrakeCS.sln @@ -1,6 +1,6 @@  Microsoft Visual Studio Solution File, Format Version 10.00 -# Visual C# Express 2008 +# Visual Studio 2008 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HandBrakeCS", "HandBrakeCS.csproj", "{A2923D42-C38B-4B12-8CBA-B8D93D6B13A3}" EndProject Global -- cgit v1.2.3