summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2018-07-19 21:09:01 +0100
committersr55 <[email protected]>2018-07-19 21:09:14 +0100
commitf039027f79cb347f960f5ca69d15b3abdf406773 (patch)
tree5b92a77e4b89ee8433aabdb230b0de2c07509434 /win
parent5c97e68c5da1c9537dfdf60fe4fd6e1a19a71165 (diff)
WinGui: Better handle Open Source Directory on the Queue where batch scan is used. Fixes #1491
Diffstat (limited to 'win')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
index c6fa2848a..12f23edf6 100644
--- a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
@@ -555,6 +555,11 @@ namespace HandBrakeWPF.ViewModels
{
if (!string.IsNullOrEmpty(directory))
{
+ if (!File.Exists(directory) && !directory.EndsWith("\\"))
+ {
+ directory = directory + "\\";
+ }
+
directory = Path.GetDirectoryName(directory);
if (directory != null && Directory.Exists(directory))
{