summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/Common.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-03-18 16:35:28 +0000
committersr55 <[email protected]>2008-03-18 16:35:28 +0000
commitf63833727ecf1725bb36b5d6d7dfc1353259a0e8 (patch)
tree520ef582dc695072c6949f6f8142e2c91d0ea943 /win/C#/Functions/Common.cs
parent6449e976291b94d5bd70a7d2c0e74c5e722098c2 (diff)
WinGui:
- Few bug fixes in the preset system - File > open is now Import preset. Loads in old presets into the preset bar. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1345 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/Common.cs')
-rw-r--r--win/C#/Functions/Common.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/win/C#/Functions/Common.cs b/win/C#/Functions/Common.cs
index 8d70523c3..7100eb58d 100644
--- a/win/C#/Functions/Common.cs
+++ b/win/C#/Functions/Common.cs
@@ -143,7 +143,7 @@ namespace Handbrake.Functions
if (presetQuery.DVDChapterFinish != 0)
mainWindow.drop_chapterFinish.Text = presetQuery.DVDChapterFinish.ToString();
- if (presetQuery.Format != "")
+ if (presetQuery.Format != null)
{
string destination = mainWindow.text_destination.Text;
destination = destination.Replace(".mp4", "." + presetQuery.Format);
@@ -345,8 +345,10 @@ namespace Handbrake.Functions
int totalChapters = mainWindow.drop_chapterFinish.Items.Count - 1;
string dvdChapter = "";
- if ((source != "") || (source != "Click 'Browse' to continue"))
+ if ((source != "") && (source.Trim() != "Click 'Browse' to continue"))
source = " -i " + '"' + source + '"';
+ else
+ source = "";
if (dvdTitle == "Automatic")
dvdTitle = "";
@@ -738,7 +740,7 @@ namespace Handbrake.Functions
if (mainWindow.Check_ChapterMarkers.Checked)
{
- if (source_name.Trim().Replace("-i ", "") != "Click \'Browse\' to continue")
+ if ((source_name.Trim().Replace("-i ", "") != "Click 'Browse' to continue") && (source_name.Trim().Replace("-i ", "") != ""))
{
if (source_title != "Automatic")
{