summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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))
{