diff options
author | sr55 <[email protected]> | 2009-07-05 16:38:58 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-07-05 16:38:58 +0000 |
commit | 40b0985abcaea7a7d45676edfb0f472ff356694e (patch) | |
tree | 3b58c4e340b9b595a8bcda047cd2e88c28e5accd /win/C#/Functions/QueryGenerator.cs | |
parent | 9389fc14e77d539cb369ac43b0ec2a70aa3c1fff (diff) |
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
Diffstat (limited to 'win/C#/Functions/QueryGenerator.cs')
-rw-r--r-- | win/C#/Functions/QueryGenerator.cs | 10 |
1 files changed, 6 insertions, 4 deletions
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")
{
|