diff options
author | sr55 <[email protected]> | 2011-01-03 20:15:10 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-01-03 20:15:10 +0000 |
commit | ee94883ba1b2e3d0dc432c84a2c05db5812fe1c6 (patch) | |
tree | a279256432b524c06048a8b7e4aa6b90e913c3c0 /win/C#/Functions/QueryGenerator.cs | |
parent | b1ab0c5b00eef003cb737414e77e4f12ad25b854 (diff) |
WinGui:
- Second attempt at fixing file path problems.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3736 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/QueryGenerator.cs')
-rw-r--r-- | win/C#/Functions/QueryGenerator.cs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/win/C#/Functions/QueryGenerator.cs b/win/C#/Functions/QueryGenerator.cs index bb1c61ff2..4c65ca183 100644 --- a/win/C#/Functions/QueryGenerator.cs +++ b/win/C#/Functions/QueryGenerator.cs @@ -94,9 +94,17 @@ namespace Handbrake.Functions {
string query = string.Empty;
- if (!string.IsNullOrEmpty(mainWindow.sourcePath) &&
- mainWindow.sourcePath.Trim() != "Select \"Source\" to continue")
- query = " -i " + '"' + mainWindow.sourcePath + '"';
+ if (!string.IsNullOrEmpty(mainWindow.sourcePath) && mainWindow.sourcePath.Trim() != "Select \"Source\" to continue")
+ {
+ if (mainWindow.sourcePath.EndsWith("\\"))
+ {
+ query = " -i " + mainWindow.sourcePath;
+ }
+ else
+ {
+ query = " -i " + '"' + mainWindow.sourcePath + '"';
+ }
+ }
if (mainWindow.drp_dvdtitle.Text != string.Empty)
{
|