]> granicus.if.org Git - handbrake/commitdiff
WinGui: Pause on Low Diskspace is for local drives only. Disabling check for UNC...
authorsr55 <sr55.hb@outlook.com>
Sun, 15 Jan 2017 18:22:48 +0000 (18:22 +0000)
committersr55 <sr55.hb@outlook.com>
Sun, 15 Jan 2017 18:22:55 +0000 (18:22 +0000)
win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs

index e9cce2b32674411bbc2bb0785e1a403ddb10b553..5b2250f64d5dce0a357044ab6a4ac696bf652b73 100644 (file)
@@ -649,7 +649,7 @@ namespace HandBrakeWPF.Services.Queue
                 if (this.userSettingService.GetUserSetting<bool>(UserSettingConstants.PauseOnLowDiskspace))\r
                 {\r
                     string drive = Path.GetPathRoot(job.Task.Destination);\r
-                    if (drive != null)\r
+                    if (!string.IsNullOrEmpty(drive) && !drive.StartsWith("\\"))\r
                     {\r
                         DriveInfo c = new DriveInfo(drive);\r
                         if (c.AvailableFreeSpace < this.userSettingService.GetUserSetting<long>(UserSettingConstants.PauseOnLowDiskspaceLevel))\r