summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/QueryGenerator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/Functions/QueryGenerator.cs')
-rw-r--r--win/C#/Functions/QueryGenerator.cs10
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")
{