summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2016-03-02 20:46:30 +0000
committersr55 <[email protected]>2016-03-02 20:46:30 +0000
commitba2f812eaad757ba5c8b726265fc8b5d47821a8a (patch)
treea7f02831f5b0ba7830b105c5558cd8fe0ab8d923
parent6f51a235c3a44830a1ecd4cf4077f55dfe421ab1 (diff)
WinGui: Don't check diskspace on UNC paths.
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
index 27bd32505..0886768e7 100644
--- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
@@ -1724,8 +1724,8 @@ namespace HandBrakeWPF.ViewModels
this.Destination = saveFileDialog.FileName;
// Disk Space Check
- string drive = Path.GetPathRoot(this.Destination);
- if (drive != null)
+ string drive = Path.GetPathRoot(this.Destination);
+ if (drive != null && !drive.StartsWith(@"\\"))
{
DriveInfo c = new DriveInfo(drive);
if (c.AvailableFreeSpace < this.userSettingService.GetUserSetting<long>(UserSettingConstants.PauseOnLowDiskspaceLevel))