]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix an error when trying to encode an item with no destination.
authorsr55 <sr55.hb@outlook.com>
Sun, 16 Dec 2018 10:30:52 +0000 (10:30 +0000)
committersr55 <sr55.hb@outlook.com>
Sun, 16 Dec 2018 10:30:52 +0000 (10:30 +0000)
win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs

index 3673180804530ce171e5ec91124e2f4fd76dd00e..0aa0cdd5938930f7f1462c8a9ccc4d720dedc73a 100644 (file)
@@ -1534,6 +1534,15 @@ namespace HandBrakeWPF.ViewModels
                 return false;\r
             }\r
 \r
+\r
+            if (!DriveUtilities.HasMinimumDiskSpace(\r
+                this.Destination,\r
+                this.userSettingService.GetUserSetting<long>(UserSettingConstants.PauseOnLowDiskspaceLevel)))\r
+            {\r
+                this.errorService.ShowMessageBox(Resources.Main_LowDiskspace, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
+                return false;\r
+            }\r
+\r
             // Sanity check the filename\r
             if (!string.IsNullOrEmpty(this.Destination) && FileHelper.FilePathHasInvalidChars(this.Destination))\r
             {\r
@@ -1740,14 +1749,6 @@ namespace HandBrakeWPF.ViewModels
                 return;\r
             }\r
 \r
-            if (!DriveUtilities.HasMinimumDiskSpace(\r
-                this.Destination,\r
-                this.userSettingService.GetUserSetting<long>(UserSettingConstants.PauseOnLowDiskspaceLevel)))\r
-            {\r
-                this.errorService.ShowMessageBox(Resources.Main_LowDiskspace, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
-                return;\r
-            }\r
-\r
             // Create the Queue Task and Start Processing\r
             if (this.AddToQueue())\r
             {\r