From 40b0985abcaea7a7d45676edfb0f472ff356694e Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 5 Jul 2009 16:38:58 +0000 Subject: WinGui: - UI design tweaks, consistent font usage, tableLayout for frmMain - Bug Fixes related to using source label instead of source path. - thanks to darkassassin - Few small tweaks/ fixes to above patch. - Fixed: Delete all built in presets option. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2666 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Functions/QueryGenerator.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'win/C#/Functions/QueryGenerator.cs') diff --git a/win/C#/Functions/QueryGenerator.cs b/win/C#/Functions/QueryGenerator.cs index 85e76f57b..b5e9cc048 100644 --- a/win/C#/Functions/QueryGenerator.cs +++ b/win/C#/Functions/QueryGenerator.cs @@ -24,8 +24,9 @@ namespace Handbrake.Functions // Source tab string query = ""; - if ((mainWindow.sourcePath != "") && (mainWindow.sourcePath.Trim() != "Click 'Source' to continue")) - query = " -i " + '"' + mainWindow.sourcePath + '"'; + if (!string.IsNullOrEmpty(mainWindow.sourcePath)) + if (mainWindow.sourcePath.Trim() != "Select \"Source\" to continue") + query = " -i " + '"' + mainWindow.sourcePath + '"'; if (mainWindow.drp_dvdtitle.Text != "Automatic") { @@ -68,8 +69,9 @@ namespace Handbrake.Functions // Source tab string query = ""; - if ((mainWindow.sourcePath != "") && (mainWindow.sourcePath.Trim() != "Click 'Source' to continue")) - query = " -i " + '"' + mainWindow.sourcePath + '"'; + if (!string.IsNullOrEmpty(mainWindow.sourcePath)) + if (mainWindow.sourcePath.Trim() != "Select \"Source\" to continue") + query = " -i " + '"' + mainWindow.sourcePath + '"'; if (mainWindow.drp_dvdtitle.Text != "Automatic") { -- cgit v1.2.3