summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-07-11 17:41:27 +0000
committersr55 <[email protected]>2012-07-11 17:41:27 +0000
commit7f1f338df87f6075e7edf0cd598523acaf0f82a1 (patch)
treea5a3ae347de9750af10740d8edbe82a45e26481e /win
parenta08d735658e82b40f409e60000a9bd3e43b0ba73 (diff)
WinGui: Fix an issue where selecting the dvd drive in the source menu would not allow the source to be encoded after scanning.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4824 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs10
1 files changed, 3 insertions, 7 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
index fd8e15152..7e1c0bf41 100644
--- a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
+++ b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
@@ -144,14 +144,10 @@ namespace HandBrake.ApplicationServices.Utilities
{
string query = string.Empty;
- // If we have a folder, strip it's trailing slash for the CLI.
- // It behaves a bit funny with trailing \ in some cases.
- if (task.Source.EndsWith("\\"))
- {
- task.Source = task.Source.TrimEnd('\\');
- }
+ query += task.Source.EndsWith("\\")
+ ? string.Format(" -i \"{0}\\\\\"", task.Source.TrimEnd('\\'))
+ : string.Format(" -i \"{0}\"", task.Source);
- query += string.Format(" -i \"{0}\"", task.Source);
query += string.Format(" -t {0}", task.Title);
query += string.Format(" --angle {0}", task.Angle);