]> granicus.if.org Git - handbrake/commitdiff
WinGui: Better handle Open Source Directory on the Queue where batch scan is used...
authorsr55 <sr55.hb@outlook.com>
Thu, 19 Jul 2018 20:09:01 +0000 (21:09 +0100)
committersr55 <sr55.hb@outlook.com>
Thu, 19 Jul 2018 20:09:14 +0000 (21:09 +0100)
win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs

index c6fa2848a6b2662fb454e5c938dce68d32f973f8..12f23edf67786dce3abf104cb7c6819cc75d6ba0 100644 (file)
@@ -555,6 +555,11 @@ namespace HandBrakeWPF.ViewModels
             {\r
                 if (!string.IsNullOrEmpty(directory))\r
                 {\r
+                    if (!File.Exists(directory) && !directory.EndsWith("\\"))\r
+                    {\r
+                        directory = directory + "\\";\r
+                    }\r
+\r
                     directory = Path.GetDirectoryName(directory);\r
                     if (directory != null && Directory.Exists(directory))\r
                     {\r